energia / msp430-lg-core

15 stars 12 forks source link

Debugging Doesn't Stop at Breakpoints #27

Closed rei-vilo closed 7 years ago

rei-vilo commented 7 years ago

Using mspdebug with the correct release of libmsp430.so (see #24) allows to upload and debug.

However, debugging doesn't stop at the breakpoints.

The test is based on the blinky example, with libmsp430.dylib provided with Energia renamed as libmsp430.so.

mspdebug --vgives MSPDebug version 0.23 and libmsp430.dylibis dated Jun 19, 2016.

$ /Applications/IDE/Energia.app/Contents/Java/hardware/tools/msp430/bin/mspdebug till gdb Device: MSP430F5529 Bound to port 2000. Now waiting for connection... Client connected from 127.0.0.1:55761 Clearing all breakpoints... Breakpoint set at 0x446e Running

$ /Applications/IDE/Energia.app/Contents/Java/hardware/tools/msp430/bin/msp430-gdb GNU gdb (GDB) 7.2 Copyright (C) 2010 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=x86_64-apple-darwin11.4.0 --target=msp430". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. (gdb) file '/Users/ReiVilo/Documents/Projets/Xcode/e-522-CC1310/e-522-CC1310/Builds/embeddedcomputing.elf' Reading symbols from /Users/ReiVilo/Documents/Projets/Xcode/e-522-CC1310/e-522-CC1310/Builds/embeddedcomputing.elf...done. (gdb) target remote localhost:2000 Remote debugging using localhost:2000 _reset_vector__ () at ../../../gcc/gcc/config/msp430/crt0.S:105 105 ../../../gcc/gcc/config/msp430/crt0.S: No such file or directory. in ../../../gcc/gcc/config/msp430/crt0.S (gdb) break 'e_522_CC1310.ino':27 Breakpoint 1 at 0x446e: file e_522_CC1310.ino, line 27. (gdb) enable 1 (gdb) info br Num Type Disp Enb Address What 1 breakpoint keep y 0x0000446e in loop() at e_522_CC1310.ino:27 (gdb) c Continuing.

... but program doesn't stop as expected at the breakpoint!

rei-vilo commented 7 years ago

Latest libmsp430.so from CCS Cloud solved the issue.