Other Parts Discussed in Thread: TI-CGT
Hello everyone,
I want to try other IDEs than CCS for developing firmware for MSP430FRXXXX microcontrollers. Currently, I want to try Visual Studio Code. My toolchain is the MSP430-GCC and my hardware is the LaunchPad MSP430FR4133
The debugging setup is as follows:
- "gdb_agent_console" is started (on default port 55000)
- "msp430-elf-gdb" then connects, erases the flash and loads my firmware (including debugging symbols)
- I hit run and - as expected - the program runs
- Breakpoints that are set before starting "gdb_agent_console" are hit as planned
However, there is an issue with debugging.
If I don't set a breakpoint and the program runs, I cannot break/stop the running program. On my console where I see all the commands between "gdb" and "gdbServer", I see the log for the MI-command "-exec-interrupt".
So to me it seems that the command to stop is send but the debugger does not break.
So general running and flash works fine, stepping through the code also works fine, but stopping a running MSP does not work.
Has anyone a solution for my problem?
Here are all my files/configurations/binaries I use:
- GDB: msp430-elf-gdb v8.1
- GDB-Server: gdb_agent_console v8.0.809.0
- Compiler/Linker: msp430-elf-gcc v9.3.1
- Board Data file (for gdb_agent_console)
# config version=3.5 $ msp430 msp430_drvr=msp430.dll msp430_port=TIUSB msp430_vcc=3.3 $ /
- Command so start GDB-Server (in Launch.json in VS Code): gdb_agent_console.exe msp430.dat
- Command to start GDB (in Launch.json in VS Code): msp430-elf-gdb.exe -ex="target remote :55000" -ex="mon erase" -ex="load" main.elf
- OS: Windows 10
PS:
I had the same issue when using "mspdebug" or "msp430-gdbproxy" as a GDB server
Any help is highly appreciated!