Hi experts,
My customer put all FLASH and RAM encrypted and placed in zone1. Below is the CMD file. They try to put all the codes in the encrypted area, except that there is an array in GS RAM due to DMA. There should be no problem with non-encrypted zones accessing encrypted zones.
After encryption, FLASH cannot be modified, but does not reset after the watchdog is turned off. The program is still working properly. There is something abnormal is the process of modifying FLASH:
1. After encryption, the process of modifying FLASH seems to be longer. In the case of decryption, they can modify FLASH normally, then they encrypted, in the process of modifying FLASH will trigger the watchdog interrupt;
2. Shield the watchdog, in the case of decryption, they can modify FLASH normally, then they encrypted, the FLASH modification failure. The program did not restart and other obvious exceptions, and by looking at the RESC register, it was confirmed that no other type of reset had occurred.
My question is that FLASH and RAM encrypted and placed in the same zone, why they can not access each other? How to solve this issue? Thank you for your help.