cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L071RZ problems with flash erase

sai
Associate II
Posted on December 16, 2016 at 13:26

Hello,

I am trying to erase a flash page in Bank 2 of STM32L071RZ and it instead erases the 1st page of Bank 1( where interrupt vector table is stored). The code is fine as the same works very well when the page address is in Bank 1.  Is there something else that has to be done while erasing a page in Bank 2?

However, this works fine as long as I am debugging step-by step. But in debug/release mode when I don't run step-by step, the 1st flash page of Bank 1 is erased!

#stm32l071 #flash-erase
1 REPLY 1
Posted on December 16, 2016 at 18:17

As much as I like mysteries it is usually a lot easier to debug and understand code I can see.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..