Hello there,
I am trying to debug on a RM48L952 HDK using gdb.
I made a simple project in CCS where i read out a pushbutton (GIOA 7) and write to one of the LEDs (NHET1 18). I compiled the source code using the TI arm compiler in CCS. This gives me a .out file (elf file).
As described in http://processors.wiki.ti.com/index.php/XDS_GDB_Agent, I open gdb server with gdb_agent_console.exe with the .dat file used in the testing of the connection.
We can use an arm compatible gdb to connect to the target, we can load the .out file, we can step, continue and place hardware breakpoints.
The problem is we are unable to use software breakpoints, gdb will respond with something like :
Warning:
Cannot insert breakpoint 0.
Cannot access memory at address 0x6794
Where the address 0x6794 is the address of the breakpoint in the .txt section of the .elf file.
I have some questions about this:
1) Is it true that with the GDB agent the RM48 runs the code from RAM?
2) Can you only use software breakpoints when executing from flash?
3) How can we use software breakpoints from within GDB on a RM48?
We want to connect our RM48 to our linux server where we can use python scripting from within gdb to run automated tests, using the XDS GDB Agent seemed like easiest way to do this.
Kind regards,
Karel