This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570 + GDB



Hello,

I tray to use GDB (gdb server from CCS5 + XDS100 on HDK) to debug code. It works almost fine. I am able to stop target and trace code step by step, show variables etc. But NONE breakpoints.

GDB server started by:

c:\ti\ccsv5\ccs_base\common\uscif\gdb_agent_console.exe c:\ti\nowFlash\v3.42\brddat\board_tixds100v2_v3_cortex_rxx.dat

gdb init is:

set endian big
target remote localhost:55000

When I try to add breakpoint, then GDB server show this error:

FAILED! GTI_SETBP_EX(hpid=00EE1280,addr=0x46c,type=0,count=1,access=0)=ffffffff

(Error -1065 @ 0x0)
Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 5.1.92.0)

I am not able to find any documentation to GDB server/agent from CCS5.

Any help?

Jiri

  • Jiri,

    Most likely, the issue is that breakpoints on Flash need to be HW breakpoints and these are not supported by the GDB agent.

    Maybe you can try setting breakpoints on some code loaded in RAM for now just to see if that works.

    We'll have to update this post again when we know the resolution - right now the emulation team is evaluating the issue.

    Best Regards,

    Anthony

  • Jiri,

    Can you attach a sample project?

    I can't debug using GDB (maybe, because of use TI ARM compiler instead of GCC).

    What compiler do you use?

    Regards, Vitaliy