cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L010 FLASH_SR bit OPTVERR set when erasing a flash page

SThom.7
Associate II

I am using an STM32L010k8 with HAL driver version 1.11.2, when I erase a single flash page at address 0x08004000, the very first call to function FLASH_WaitForLastOperation within HAL_FLASHEx_Erase fails because the OPTVERR bit in FLASH_SR register is set.

If I retry the erase or call FLASH_WaitForLastOperation again it seems to work fine... :\

This doesn't make sense to me, as I am not access an Option Byte. Anyone have any ideas please?

DEV_ID = 0x417, REV_ID = 0x1038 (cat3 Rev X)

0 REPLIES 0