Skip to main content
Marco1
Associate III
November 30, 2015
Question

STM32F072 Erase page0 >> SOLVED

  • November 30, 2015
  • 2 replies
  • 508 views
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
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 30, 2015
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Marco1
    Marco1Author
    Associate III
    December 1, 2015
    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.