Page 1 of 1

Deactivation of Writing on Flash Protection

Posted: Thu Apr 14, 2022 11:34 am
by mebab
I have already been able to read/write on the EEPROM (EEPROM emulation) on STM32L433. However, for an unknown reason, I cannot put new data on EEPROM now where I only can read data using read command. I use EEPROM.h library and Arduino IDE for programming. It seems that the reserved page of the Flash is protected some how.
Does anybody know how to activate writing on EEPROM (Flash)?

Thanks in advance,

Re: Deactivation of Writing on Flash Protection

Posted: Fri Apr 15, 2022 8:38 am
by mebab
I could find a solution by using ST-Link Utility that worked for me as follows:
Run ST-Link Utility and connect to the microcontroller-->Target --> Optin Bytes --> Uncheck RCROP_RDP and Apply. If it doesn't work, change Level 0 to Level 1 and then come back to Level 0 again and apply the mentioned change. It erases the flash if it really applies the change. Disconnect STLink Utility and check out the modification. I hope it works for you too.

Best wishes

Re: Deactivation of Writing on Flash Protection

Posted: Fri May 06, 2022 10:38 am
by Mtaha
I used your recommendation and it worked for me. Thanks!