I need to implement firmware update through SCI with code security enabled. I use serial_flash_kernel example: first it is loaded into RAM with ROM bootloader. Then flash kernel gets application file through SCI and programs into flash. The issue is that ROM bootloader can't load data into L0 and L1 while the device is locked by CSM. This is confirmed in
Serial Flash Programming of C2000™ Microcontrollers doc http://www.ti.com/lit/an/sprabv4c/sprabv4c.pdf
"The ROM cannot access RAM protected by the Code Security Module (CSM). Therefore, the device needs to be unlocked, or the load must be to unsecure RAM."
Unsecure RAM is M0 and M1 which is tiny - only 2kB and serial_flash_kernel does not fit into it. In cmd file which goes with serial_flash_kernel .text and some more data is put int L0 and L1, does it make sense if CSM enabled? How is firmware update with CSM enabled supposed to be working?