Smartfusion2 - Writing to eNVM with XIP (execute in place)
I would like to know if it would be possible to update eNVM pages while booting from it. My test program runs fine when using the debug-esram.ld linker file but gives a busy error (followed by protection errors) when using debug-envm or production-in-place. I am using the NVM_unlock and NVM_write functions included in the drivers. I plan on splitting the eNVM into two parts - 128 KB program and 128 KB as dynamic storage.
Note: M2S010-TQFP. I also have cache controller enabled, if that makes any difference. I would also like to know the write endurance of the eNVM (in program cycles per page).