2017-01-18 01:00 AM
Hi,
I am having a problem with the function FLASH_ProgramHalfPage it returns the error FLASH_ERROR_WRP but if I check the option bytes of my memory they are in Level 0 so it is not protected. Also I can connect my device to St-Link utility without changing the option bytes but if I run my code can not write in the memory because of the error mentioned.
I would like to know how this can happen if I haven't changed the option bytes of the memory.
Thanks in advance for your help.
#flash_error_wrp2017-01-18 04:24 AM
Hi
ciordia.raquel
,Could you please check this thread
https://community.st.com/0D50X00009XkgOoSAJ
-Nesrine-
2017-01-18 05:39 AM
Hi Nesrine M,
Thanks for the link.
Raquel.
2017-02-13 08:17 AM
I had a similar problem due to enabling/disabling Read Protection. Additionally, trying to undo it only results in continued issues with writing to Flash. It appears my Option Bytes are corrupt and I'm trying to find a way to restore them, hopefully ISP so I can do it through a firmware update and not have to connect a programmer.