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.

CCS debug program with elf output

Hi. 

I am using CCS v4.0 with cgt 7.0.1 for omapL137 starter kit but only on c6747  dsp side . My project ( a  simple main with a while loop ) builds with both -abi=eabi and --abi=coff options, however I can not debug the output when built with eabi settings. I have tried various linker file tweakings to no avail . The gel file provided by Spectrum Digital is processed with no problem, but the debug window shows (Thread - main suspended) and pc at an unknown location in dsp ram. I believe the problem can be in binary parser, but no other parsers except TI COFF parser works in the debugging.

I will be grateful if you can guide me.

If required, I can send a simple demonstration project, but it is easy to construct. (a new project, with a main and while loop, standart linker , with --abi = eabi option.)

Thanks in advance.

  • Kaan,

    I managed to make CCSv4.1.2 and 4.1.3 to properly load and run EABI code in the C6747 EVM, therefore I suspect something changed between CCSv4.0 and the newer releases (although I couldn't find anything reported).

    My initial suggestion would be to download a newer release of CCS, but before that could you try to do load the binary to the target in steps? This way it is possible to know exactly where the problem is happening.

    First launch the debugger by right-clicking on the .ccxml file and select Debug As... --> Debug Session. After the debugger is launched, right-click on the DSP core and select Connect Target. Then click on menu Target --> Load Program and browse to the output file. See if it loads correctly and check for any error messages.

    Just a note: EABI support in C6000 is somewhat new and not yet largely supported in the marketplace - even DSP/BIOS does not have EABI versions of its libraries, therefore requiring everything to be built in COFF.

    Hope this helps,

    Rafael

     

     

  • Rafael  thanks.

    My project works with newer version of CCS, though I made numerous uncontrolled changes in the process so I am not sure what solved the problem. 

    Anyway, it works now, so I won't go on investigating.

    As a second request, can you share your sample linker command filefor eabi version? I suspect mine may have some peculiarities & errors in it.

    Thanks