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.

Debug in CCSv5

Hi

I am new with CCSv5

I want to simulate assembly codes for TMS320C54x in CCSv5. I successfully built the assembly code. Now I am stuck with debug section. 

i have chosen texas instru. simulator in connection and c55xx rev 2.x CPU functional simulator in configuration

But when i am debugging code

in console window its giving error as "TMS320C55x: Can't Run Target CPU: ERROR : Ensure that you have proper reset vector in your program NOTE : Reset the target, reload the corrected program and continue execution "

  • Hi Trupti,

    If you check: processors.wiki.ti.com/.../List_of_Simulator
    CCSv5 simulator does not seem to support C54x devices.

    Regards,
    Gautam
  • Hi Gautam,

    I know, CCSv5 does not support C54x simulator. So I switched to C55x simulator, as c55x is back compatible with c54x.

    Now I am stuk with another problem.

    i have chosen texas instru. simulator in connection and c55xx rev 2.x CPU functional simulator in configuration

    But when i am debugging code

    in console window its giving error as "TMS320C55x: Can't Run Target CPU: ERROR : Ensure that you have proper reset vector in your program NOTE : Reset the target, reload the corrected program and continue execution "

    Suggest solution for this.

  • So I switched to C55x simulator, as c55x is back compatible with c54x.

    Have you tested this before??? Does your target configuration lets you select your C54x device under C55x simulator connection?

    in console window its giving error as "TMS320C55x: Can't Run Target CPU: ERROR : Ensure that you have proper reset vector in your program NOTE : Reset the target, reload the corrected program and continue execution "

    This is because your core is not CC55x but is CC54x
  • while creating project i chose C55x device only. I don't want to verify codes on board but only need to work on tool with C54x. But as i am not getting simulator for c54x. I completely switched to c55x.

    and above project created was with completely c55x, not with c54x.

    So Now everything I am working on is C55x.

  • Ok, now it makes complete sense :)
    The above window denotes the Project Properties Window. Have you also configured the Target configuration file .ccxml ?
  • TRUPTI C said:
    in console window its giving error as "TMS320C55x: Can't Run Target CPU: ERROR : Ensure that you have proper reset vector in your program NOTE : Reset the target, reload the corrected program and continue execution "

    This is dependent on your source code (since it is pure assembly) and entry point set in the linker settings. If a specific entry point is not given to the linker, it defaults to 0x0. Try setting the linker entry point to be the start address of your code. For example, if have a label in your assembly source file where your code begins, you can specify that label/symbol as the linker entry point. Go to Project Properties->Build->Linker->Advanced Options->Symbol Management, and specify the symbol under --entry_point. Then try rebuilding and reloading the program.

  • Hi AartiG,

    I am sharing the screenshot for symbol management window and my code with built errors.

    May be I am making some mistake while adding symbol. Honestly, I don't know how to add symbol, but I tried it on my own. Please correct me where I am wrong.

    Thank you.