AnsweredAssumed Answered

STM32L071RZ problems with flash erase

Question asked by Ramu.Sai_Prashanthi on Dec 16, 2016
Latest reply on Dec 16, 2016 by Clive One



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!