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.

TMS320F280025: Can not erase Flash when enable DCSM

Part Number: TMS320F280025

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.

  • Hi,

    There should be no problem with non-encrypted zones accessing encrypted zones. 

    I would like to clarify this statement. I am assuming encrypted means secure and non-encrypted means non-secure here. If that is correct then this statement is not correct. Code running from non-secure region can not access information in secure zone. 

    We have semaphore (FLSEM) register and each zone need to grab the semaphore to perform any program/erase operation on secure flash. Can you please check if user is doing this in their code.

    Regards,

    Vivek Singh