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.

Using Flash API for 28035 with CSM enabled

Other Parts Discussed in Thread: CONTROLSUITE

Hi all!

I need to use Flash API in my project to update internal firmware. Of course I will use CSM to protect my code. But when I try to erase some sectors (not the SECTORA) from the program I get Flash api error #10 STATUS_FAIL_CSM_LOCKED

I can unprotect the device during flash operation using CSMSCR register (and this works fine) but I don't want to do this because it is very insecure.

I use Flash API from Control Suite (libs/utilities/flash_api/2803x/v100). On this forum I found information that this error can occur when Flash API code being executed from insecure memory (M0 for example). But the API for 28035 executed from Boot ROM. The library doesn't include real code now which could be copied into desired RAM area. As I know I can't copy API code into RAM besause it was statically linked to be executed from the dedicated boot ROM.

So my general question is how can I flash some sectors of 28035 device without unlocking the chip during this operation?