Skip to main content
Raquel ciordia
Associate
January 18, 2017
Question

stm32L1 FLASH_ProgramHalfPage error FLASH_ERROR_WRP

  • January 18, 2017
  • 2 replies
  • 1093 views
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
This topic has been closed for replies.

2 replies

Nesrine M_O
Associate
January 18, 2017
Posted on January 18, 2017 at 13:24

Hi

ciordia.raquel

‌,

Could you please check this thread

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

-Nesrine-

Raquel ciordia
Associate
January 18, 2017
Posted on January 18, 2017 at 13:39

Hi Nesrine M,

Thanks for the link.

Raquel.

Robert Vice
Visitor II
February 13, 2017
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.