8 years, 10 months ago.

flash memory not writable

maybe this question will be listed twice but i can not see it listed since the first time i posted it (the forum has some problem at the moment).

Is there a possibility to make the flash memory (the memory where the firmware resides) not writable?

1 Answer

8 years, 10 months ago.

Yes, generally that is possible. How exactly depends on your device.

Accepted Answer

Hi Erik. Thanks but I have no idea of the theoretical possibilities that exists. Can you list some? What if i have for example a nucleo board. How to do it there?

posted by Elvi Fiscali 27 Jan 2016

Normally you will use an offline compiler for this, which has somewhere options to enable CRP (code-read-protection, where also the write protection exists. Although do remember if you flashed the wrong thing this permanently kills your MCU. For most products just implementing the read protection is sufficient: It allows you to prevent others from checking out your firmware, but it does not prevent firmware updates.

posted by Erik - 27 Jan 2016