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.

TMS320F28376D: copy and restoring the flash memory in TI CCS and TMSF28376D

Part Number: TMS320F28376D

Hi
i inherited a complex code project in TI CCS and the verify fails  to compare with the hex code we have as release.
 
1) can i dump the flash memory to a file and program it back later? would that  work? i have working board and i want the option to  program it back in case the code i have does not work?
how to program flash from the dumped file? not from a hex file?
2) is there a utility to change the memory dump to a hex file?
3)  is there source code in C/C++ that  works with hex files?
 
thanks,
~loai
tools are CSS 7.0.0 and emulator

  • Loai,

    1) Yes, you can dump the flash memory from CCS memory window.  Click on green button in memory window and export the memory contents in to a coff file and later you can use that coff file to program the Flash again.

    2) You can use C2000 Hex utility (hex2000 utility is located at \ccsv7\tools\compiler\ti-cgt-c2000_*\bin) to convert coff to hex.  But I don't think you would need this since you can export the contents as coff as mentioned above.

    3) Are you asking whether you will be able to debug the code or see source code in case of loading a hex file? Hex files will not have debug info.  Hence, you may not be able to debug the code.  If you need more info on this, I can check with our compiler team.  Let me know.

    Thanks and regards,
    Vamsi

  • Hi Vamsi,

    Thanks! how to program the flash directly from coff File?

    on different topic about debugging i am debugging a code but i connect but i only see assembly for the FFFxxx region
    no source code to single step through. I programmed the hex file generated the debugger into the F28376D and i can see the flash code in the memory for cpu0
    i am familiar with CCS 3.3 so this is different for me.
    also where to find information on loading and generating symbols form the debugger and echoing a buffer on my pc screen
    do you want me to put this in different posting ?


    Thanks and regards,
    ~Loai
  • Loai,

    Regarding the coff file program: In CCS debug window, click on Run -> Load -> Load program. Browse to the coff file that you got from memory window dump and say OK.

    Regarding no source found: As I mentioned earlier, hex files will not have debug info and hence you will not be able to find source in CCS after loading the hex file. However, you can load symbols by selecting the original coff file (not the coff file that you get from memory window save method). You can simply go to Run -> Load -> Load symbols -> and browse to the original coff file.

    You may want to start a different post on other questions.

    Thanks and regards,
    Vamsi
  • Thanks Vamsi

    Regards,
    ~Loai