cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F072 Erase page0 >> SOLVED

Marco1
Associate II
Posted on November 30, 2015 at 18:42

Hi,

it's possible to erase and rewrite page0 from internal program ? I disable before all IRQ, after erase the page0 and rewrite it. But after erase, the program crash (jump to unknow address) . There is a special way to do this ?

Sorry for my english
2 REPLIES 2
Posted on November 30, 2015 at 18:58

I'd imagine you'd want to relocate the vector table, and any active code into RAM, and once you have that running, then you could erase the FLASH pages. I'm not sure ''disabling the interrupts'' is going to be adequate.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Marco1
Associate II
Posted on December 01, 2015 at 15:51

Hi, my code its in high part of micro (0x800c000) and erase only first 16 pages of micro. If i put a breakpoint and execute code step to step, it work, and erase all 16 page. When i remove breakpoint, after first erase, the code jump at unknow address.