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.

TM4C123GH6PM: Simultaneously debug two projects in own flash on same core

Part Number: TM4C123GH6PM

I have two projects that I am trying to run and debug on the same core.  I have a custom bootloader program that starts up first and checks to see if there is a valid application program.  I would like to be able to run and debug the bootloader and when it jumps to the application code, I would like to be able to debug that.  These two projects have their own space in flash, but I have thus far been unable to find a way to run them both at the same time.

Is this possible??  I have successfully done this exact thing in IAR Embedded Workbench, but have found no way as of yet, to do it in CCS.

  • Hello Seth,

    Are you using the TivaWare boot loader? If so, it's going to copy to SRAM by default. You can either adjust it to not move everything into SRAM or you could go through loading symbols and debug in SRAM.

    Which would you prefer to do?

    Best Regards,

    Ralph Jacobi

  • No, I have custom bootloader that I wrote with it's own dedicated memory in flash, and an application I wrote that has it's own dedicated memory in flash.  They are separate projects, but for the same chip.  I want to be able to load both programs and step through the jump from bootloader to application and vice versa.  Basically treat the two projects as a single project..... kind of.

  • Hello Seth,

    want to be able to load both programs and step through the jump from bootloader to application and vice versa.

    If I understand correctly, you just need to load the debug symbols for both programs. This would give you debug visibility for both programs that are already in flash. This is possible. You can use the 'Run -> Load -> Load Symbols' for one out file and then 'Run -> Load -> Add Symbols' for the second. This would ensure that the symbols for both files are loaded and you have debug visibility for both.

    Thanks

    ki

  • What is the difference between loading symbols and adding symbols??

  • Loading symbols will first remove (unload) all existing symbols before loading the new symbols.

    Adding symbols will just add the new symbols in addition to keeping the already loaded symbols alone.