Hello,
Is there a mechanism of FLASH Memory protection, Fetch and Write, same as the RAM region (i.e DxACCPROT0)?
How can I protect few FLASH sectors to be accessed by the software.
Thank you
Laurent
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.
Hello,
Is there a mechanism of FLASH Memory protection, Fetch and Write, same as the RAM region (i.e DxACCPROT0)?
How can I protect few FLASH sectors to be accessed by the software.
Thank you
Laurent
Hi Laurent,
The access protection mechanisms for Flash are different than RAM. What kind of access are you specifically trying to protect against?
Please review the TRM sections below for the features available on the device.
Best,
Kevin
Kevin,
The idea is to run a custom bootloader from two or three FLASH sectors and to jump to an application software.
Before jumping to it, the bootloader will lock its FLASH sectors from write and fetch so that the application software cannot execute code from that region in case things go wrong.
Best,
Laurent
Hi Laurent,
OK, understand. I'm pulling in another expert to provide comment.
Best,
Kevin
Hi Laurent,
Thanks for your question. I'll get back to you within the next day.
Charles
Hi Laurent,
For Flash sectors we don't provide any lock that will prevent it from write/read. However we have DCSM feature which restricts the CPU access to the on-chip secure memory and resources without interrupting or stalling CPU execution. Refer DCSM section in TRM for more details.
However, their is an option of leaving some sectors programmed and only erasing specific sectors(Erase or program operation sector wise).
Regards,
Rajeshwary