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.

Problem debugging the C64x+ in OMAP3530

Other Parts Discussed in Thread: DM3730, OMAP3530

Hi,

I want to debug the DSP side of OMAP using ccsv4 and blackhawk usb560 emulator. I first released the DSP from reset. Now, when I hit the debug bug I get the following error messages:

C64XP_0: File Loader: Data verification failed at address 0x11800000 Please verify target memory and memory map.

Error found during data verification.

Ensure the linker command file matches the memory map.

I think the linker.cmd file is not suitable for this CPU. What should I do to step over this problem? I have been spending quite a long time trying to be able to debug the DSP, your helps will be appreciated.

Thanks..
Coskun

  • I also have lots of questions on debuging DSP on OMAP3530 and DM3730. Hope TI could give me more support on DSP side debuging. The materials is very limited!

  • I use the OMAP3530 and write Arm/C64x+ programs.  When I debug my C64x+ code using CCS 3.3 I:

     

    1- make sure that I pass the compiler "-g" flag to generate debug information in the dsp.out program and I disable -O setting to prevent compiler optimization ... to make sure that the dsp.out has the same info as my c-source file.

    2- Choose a spot in my c-source code where I want the DSP to hang by inputting an infinite while loop ... something like

    flagVar = 0;

    while(flagVar)

    i++;

    3- setup a CCS project for the DSP, I usually compile my code using DSPLink so the CCS project I setup is fake it only has the source file but it doesn't compile the code.

    4- I let my ARM program load the DSP and let the DSP hang in the previously mentioned while loop

    5- I connect to the debugger CCS should load the assembly file for the source code the DSP is running but you probably want to look at your C-source code.

    6- To look at the c-source code click file->load symbol-> choose your DSP's program.out this won't reload your program on the DSP it'll just make the debugger run through your c-code instead of the generated assembly.

    7- write click on the line after your while loop and select the option to set your program counter (PC) to that specifc line this way you'll skip your infinite loop.

    8- hit next make breakpoints and debug to your hearts content.