Question
STM32F051 that does not erase flash page despite use of ST code
Posted on August 24, 2016 at 13:48
I have been working on a STM32F051 for a while now. Though despite using reference code from the manual (page 936 in RM0091) for erasing flash, the device does not erase the page. I have traced it into the erase routine where the Flash->FAR (Page address of page to erase). This is not set in the debugger, though I do not understand why. Accoring to reference manual I have added the unlock functionality as well - still no success.
Does anyone have a clue on what to look for? - E.g. is it necessary to disable interrupts during flashing or are they just not processed during the flashing process? Thanks in advance Ideas on what to look for.