Other Parts Discussed in Thread: MSP-EXP430FR5969, MSP430FR5959, MSP-FET, UNIFLASH
Tool/software: Code Composer Studio
The topic is close to this one but I think the Studio Forum is closer to my problem then Networks.
I have CCSv7 and msp-exp430fr5969 Launchpad (eZ-FET). They match ideally and I can load and debug my projects to a target msp430fr5959 MCU. I use msp430-gcc, installed with the Studio.
Now I need to launch the debug session without CCS.
First, the uploading of the program. I installed MSPFlasher and it works fine. It asked to update the firmware of my Lauchpad. Since MSPFlasher is very new (30 of November version), I accepted it and now I burn my target device very well. Try to return to CCS - it loads and debugs programs as well. So the firmware update did not break the Launchpad in any way.
Second, debug. But now I try to launch GDB. I run gdb_agent_console from msp430-gcc package (6.4.0), in another terminal:
export PREF=/home/user/ti/msp430_gcc $PREF/bin/gdb_agent_console $PREF/msp430.dat
I see a response
Successfully configured /home/user/ti/msp430_gcc/msp430.dat CPU Name Port -------- ---- MSP430 :55000 Starting all cores CPU Name Status -------- ------ MSP430 Waiting for client
Now I launch a
$PREF/bin/msp430-elf-gdb foo.elf
and in a prompt of gdb insert a command
(gdb) target remote localhost:55000
The proxy server gdb_agent_console connects to Launchpad and immediately begins to update the firmware! More of it. After "updating" it doesn't work properly. More of it. The try to use the Launchpad with the CCS fails too. Only MSPFlasher restores the firmware and Launchpad may be used again.
What is wrong with gdb_agent_console? Or it's my fault?
The msp430.dat was such:
# config version=3.5 $ msp430 msp430_drvr=msp430.dll msp430_port=TIUSB msp430_vcc=3.3 $ /
but I tried to edit it in such a way:
# config version=3.5 $ msp430 msp430_drvr=/home/user/MSPFlasher_1.3.16/libmsp430.so msp430_port=TIUSB msp430_vcc=3.3 $ /
Nothing changes.