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: Erase/Program Secure Flash Sector with Flash API

Part Number: TMS320F28388D

Hi Dear All,

We are developing a project which consist of two parts . Custom bootloader and application firmware.

- Custom bootloader located in flash sector 0.
- An application firmware located from sector 1 and onwards.

With DCSM, sector 0 and sector 1 declared as a Secure (allocate to Zone1).

--

Custom bootloader uses Flash API to program application firmware.

Flash API is loaded to Flash Sector 0, run from RAM LS0 to LS6 ( from 0x8000, 0x3800 length )

--

We know that : if a zone is secured, then Flash API should be executed from the same zone in order to be able to erase or program the Flash sectors of that zone.

So, we declared RAMLS0 to RAMLS6 also as a Secure (allocate to Zone1).

--

We were hoping Flash API could erase/program application firmware successfully (which is located sector 1 and beyond) but it could not.

Then, we added PMF code at the beginning of the custom bootloader, Flash Api erased/programed application firmware successfully.

--

I think for proper Flash operation, executing Flash API from the same zone with application firmware is enough. 

I did not understand, why Flash API doesn't work without PMF.
Could you help me on this issue ?

Thanks.
Mehmet.

---