|
dospat07
Ранг: Минаващ
Регистриран на: Вто Фев 01, 2011 11:59 am Мнения: 4
|
 VisualGDB msp430 launchpad
Здравейте , Опитвам се да дебъгна LEDBlink темплейта във VisualGDB . Когато го стартирам в mspdebug Simulator работи ,но през JTAG(gdbproxy++) получавам следните съобщения в msp430-gdbproxy прозореца:
msp430-gdbproxy++ v1.01 [http://gnutoolchains.com/msp430/gdbproxy] Successfully initialized MSP430.DLL on USB Listening on port 2000.
Incoming connection from GDB. Starting session... Found a device: F20x2_G2x2x_G2x3x Number of hardware breakpoints: 2 2048 bytes of FLASH memory (0xf800-0xffff) 128 bytes of RAM (0x0200-0x027f) 256 bytes of INFO memory (0x1000-0x10ff) GDB Disconnected. Releasing MSP430 interface
а в GDB Session прозореца
Your VisualGDB trial expires in 30 days! C:\SysGCC\msp430\bin\msp430-gdb.exe --interpreter mi "D:\Source\TestApp\GNUBasedApplication2\GNUBasedApplication2/Debug\GNUBasedApplication2.elf" -list-features =thread-group-added,id="i1" GNU gdb (GDB) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-mingw32 --target=msp430". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from D:\Source\TestApp\GNUBasedApplication2\GNUBasedApplication2/Debug\GNUBasedApplication2.elf... done. ^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info"] -gdb-set stop-on-solib-events 1 OK -gdb-set new-console on A syntax error in expression, near `new-console on'. -data-list-register-names ^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12","r13","r14","r15"] -gdb-set disassembly-flavor intel No symbol "disassembly" in current context. -gdb-set print demangle off OK -gdb-version GNU gdb (GDB) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-mingw32 --target=msp430". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. OK target remote :2000 &"target remote :2000\n" Remote debugging using :2000 &"Remote communication error. Target disconnected.: No such file or directory.\n" Remote communication error. Target disconnected.: No such file or directory. load &"load\n" &"You can't do that when your target is `exec'\n" You can't do that when your target is `exec' -data-evaluate-expression "sizeof(void *)" ^done,value="2" -data-evaluate-expression "sizeof(int)" ^done,value="2" -data-evaluate-expression "sizeof(short)" ^done,value="2" -data-evaluate-expression "sizeof(long)" ^done,value="4" -data-evaluate-expression "sizeof(long long)" ^done,value="8" -data-evaluate-expression "sizeof(char)" ^done,value="1" -data-evaluate-expression "sizeof(wchar_t)" No symbol "wchar_t" in current context. -data-evaluate-expression "sizeof(float)" ^done,value="4" -data-evaluate-expression "sizeof(double)" ^done,value="4" -data-evaluate-expression "sizeof(long double)" ^done,value="8" info target &"info target\n" Symbols from "D:\Source\TestApp\GNUBasedApplication2\GNUBasedApplication2/Debug\GNUBasedApplication2.elf". Local exec file: `D:\Source\TestApp\GNUBasedApplication2\GNUBasedApplication2/Debug\GNUBasedApplication2.elf', file type elf32-msp430. Entry point: 0xf800 0x0000f800 - 0x0000f8ae is .text 0x00000200 - 0x00000202 is .bss 0x00000202 - 0x00000204 is .noinit 0x0000ffe0 - 0x00010000 is .vectors OK -break-insert -f D:/Source/TestApp/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:56 ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000f87e",func="watchdog_timer()",file="LEDBlink.cpp",fullname="D:\\Source\\TestApp\\GNUBasedApplication2\\GNUBasedApplication2/LEDBlink.cpp",line="56",times="0",original-location="D:/Source/TestApp/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:56"} info symbol 0xf87e &"info symbol 0xf87e\n" _Z14watchdog_timerv + 8 in section .text OK info line *0xf87e &"info line *0xf87e\n" Line 56 of "LEDBlink.cpp" starts at address 0xf87e <watchdog_timer()+8> and ends at 0xf888 <watchdog_timer()+18>. OK -file-list-exec-source-files ^done,files=[{file="LEDBlink.cpp",fullname="D:\\Source\\TestApp\\GNUBasedApplication2\\GNUBasedApplication2/LEDBlink.cpp"},{file="c:\\sysgcc\\msp430\\bin\\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430g2231.h",fullname="c:\\sysgcc\\msp430\\bin\\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430g2231.h"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"},{file="../../gcc-4.6.3/gcc/config/msp430/crt0.S"}] -exec-continue The program is not being run. -stack-list-frames --thread 0 Invalid thread id: 0 -stack-list-frames No registers. -stack-list-frames --thread 0 0 0 Invalid thread id: 0 -stack-list-frames 0 0 No registers. -data-evaluate-expression --thread 0 "\$pc" Invalid thread id: 0 -data-evaluate-expression "\$pc" No registers. -stack-list-frames --thread 0 Invalid thread id: 0 -stack-list-frames No registers. -stack-list-frames --thread 0 0 0 Invalid thread id: 0 -stack-list-frames 0 0 No registers. -data-evaluate-expression --thread 0 "\$pc" Invalid thread id: 0 -data-evaluate-expression "\$pc" No registers.
чипа е msp430g2231. Ако някой има идея ще бъда много благодарен
|