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.

Compiler/TMS320F28377S: avoiding the sector erase of microcontroller

Part Number: TMS320F28377S
Other Parts Discussed in Thread: UNIFLASH

Tool/software: TI C/C++ Compiler

I want to store some data on microcontroller flash memory and I want to make sure that, the data is not lost during programmer erase cycle. I know the setting of JTAG for avoiding any particular sector form erase cycle. But is there is any macro by which I can select a sector from my code to avoid its erase cycle?. We are also using serial flash utility to program the microcontroller and when we select erase option then it will erase full memory (bank 0 and 1 both). 

 

  • Sam,

    Glad that you know how to select the sectors when using JTAG based TI Flash tools (Plugin and UniFlash).

    Regarding Serial Flash Kernels:

    Please take a look at http://www.ti.com/lit/an/sprabv4c/sprabv4c.pdf

    Flash kernel B (works for F2837xS) supports erasing sectors that are needed to program the application and data into flash. It provides an erase function which gives the user the ability to erase specific sectors or the entire flash of the device. 

    Please see Erase CPU1 Kernel command in Table 4. CPU1 Kernel Commands and "Erase" in section "5.1.4 Packet Data".  

    Note: As of now, Flash kernel supports only Bank0 Flash operations for F2837xS device.  We updated the kernels to fix a few bugs and also to support Bank1 operations. It will be available in next release.

    Thanks and regards,
    Vamsi