Hi Vamsi and Vivek
I tried to modify the flash programming example CPU1 for the F28377D to run with secured flash and RAM.
I started from the Control Suite V170 example (\F2837xD\v170\F2837xD_examples_Dual\flash_programming\cpu01). I added
DcsmCommonRegs.FLSEM.all = 0xA501;
at the very beginning of InitFlash() to grab the flash semaphore as it was recommended in (https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/660432?tisearch=e2e-sitesearch&keymatch=Flash%20API%20F021%20CSM and https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/642405?tisearch=e2e-sitesearch&keymatch=Flash%20API%20F021%20CSM).
Additionally I uncommented the flash erasing part at the end of the example to be able to check if the flash operation was successful. The example writes test data at the beginning of the flash sector B (0x82000) and C (0x84000).
My security settings are the following:
Z1-GRABSECT on 0x35555555 (whole flash bank 0)
Z1-GRABRAM on 0x30005555 (LS0-LS5, D0-D1)
Z1-CSMPSWD0-3 on 0xxxxxxxx
After securing (and let the example code run at least once) I unsecured the device and checked the flash sectors for the test data. If the device was secured the flash is on 0xFFFF. If the device is not secured the test data (0x0001, 0x0002 ..) stays in the flash.
Is there anything else I forgot to change so that this example runs in secured mode?
Could you provide an example which works in secured mode?
Best Regards, Benjamin
