cancel
Showing results for 
Search instead for 
Did you mean: 

stm32L1 FLASH_ProgramHalfPage error FLASH_ERROR_WRP

Raquel ciordia
Associate
Posted on January 18, 2017 at 10:00

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_wrp
3 REPLIES 3
Nesrine M_O
Lead II
Posted on January 18, 2017 at 13:24

Hi

ciordia.raquel

‌,

Could you please check this thread

https://community.st.com/0D50X00009XkgOoSAJ

-Nesrine-

Posted on January 18, 2017 at 13:39

Hi Nesrine M,

Thanks for the link.

Raquel.

Robert Vice
Associate II
Posted on February 13, 2017 at 17:17

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.