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.

TMS320F28388D: Choose Debug Info for a Single Address

Part Number: TMS320F28388D


Greetings,

                Our code has circumstances where the processor runs from RAM.  In one instance, it will load code A into a location in RAM and run it.  At another time, the same location will be loaded with code B which is then run.  When debugging, CCS notes that the location could have code A or B which is correct.  At the moment, I am trying to debug code B, but CCS is showing the debug information for code A.  Looking at the assembly, I can see that the code which is at that location is code B.  Is there a way to tell CCS to use the debug information for code B?

Thank you,

Ed

  • Hello Ed,

    Sorry, your description isn't really clear to me. Are you loading both sets of code at the same time or different times from different projects? Or are you trying to use different cores for each code?

  • Hi Omer,

                    I was afraid it might not be clear.  Sorry.

                    This all within a single project on a single core.  It loads the RAM with Routine1 and executes it.  At a different time, it loads the RAM with Routine2 and executes it.  So there are two routines which have the same run address.  When I debug at that address, CCS correctly tells me that there are two possible routines for that address and selects one of them.  The one being chosen is for Routine1.  But I am debugging Routine2.  Is there a way to tell CCS to use the symbols for Routine2?

    Thank you,

    Ed

  • At a different time, it loads the RAM with Routine2 and executes it.

    Just for my clarity, is this being done with something like memcopy to copy the memory from Flash into RAM or some other method? If you re-initialize just before loading Routine2, does CCS still say there are two possible routines?

    When I debug at that address, CCS correctly tells me that there are two possible routines for that address and selects one of them.

    Can you show me the message you're seeing?

  • Sorry.  I misspoke.  Conceptually there is one project.  But there are actually two CCS projects.  Both projects copy code to RAM and execute it.  I had both sets of symbols loaded.  When I load only the symbols from the CCS project which is running, then the debugger shows me the expected information.

    Sorry for the confusion.

    Ed