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.

TMS320F28386D: Loading new image overwrites data in flash

Part Number: TMS320F28386D

Hello All,

I am using flash sector 12 and 13 to store user data. Works fine if debugging code from RAM. But when I load a new code image to flash, using CCS debug tool, the first thing it does is erase all flash sectors.

Is there a way to specify what flash sectors to erase when loading in CCS?

thanks

  • I found where to set this: under Debug Configurations/Target/Flash Settings. Works.

    But I don't see where this setting is saved. The project files and ccxml appear unchanged. How to I ensure this setting is saved between users?

    thanks

  • Hi Ken,

    In CCS Debug view -> Tools -> On-chip flash GUI, you can configure Erase Settings as you need.  I copied below questions/answers from my FAQ on Flash plugin (https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1096194/faq-c2000-ccs-flash-plugin-and-uniflash)

    • 12) Can I choose which sectors should be erased during a program load in the flash tools?
      A) Yes, you can uncheck the default "Entire Flash" setting and select the required sectors under the Erase Settings.
    • 13) How can I avoid erasing sectors to which no content is mapped in my application?
      A) That is a good idea to avoid unnecessary erase cycles. You can choose the "Necessary Sectors Only" option under the Erase Settings. Flash plugin will erase only the sectors to which the content is mapped in the user application.

    If you want the On-chip flash plugin to remember the updated GUI configurations for next iterations, you can use the "Remember My Settings" button at the bottom of the GUI.

    Thanks and regards,
    Vamsi