cancel
Showing results for 
Search instead for 
Did you mean: 

Recovering from an aborted full flash erase

ron2399
Associate II
Posted on June 28, 2016 at 08:29

I initiated a change from RDP level 1 to RDP level 0, which in turn initiated a full flash erase.  But before that process completed I pull the power on the chip.  Now dfu-util refuses to load new code, saying:

dfu-util: ERASE_PAGE not correctly executed

Is there any way to recover from this?
4 REPLIES 4
slimen
Senior
Posted on June 28, 2016 at 16:08

Hi,

What version of the DFU are you using?

Regards

ron2399
Associate II
Posted on June 28, 2016 at 21:46

I'm not sure what you mean.  If you mean what version of the on-chip DFU I'm using I have no idea.  The chip is an STM32F415.  If you mean what version of dfu-util am I using, it's 0.9 (running on OS X if that matters).

slimen
Senior
Posted on June 29, 2016 at 11:54

Hi lisper,

Try using the ST-LINK Utility

http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html

 and check that you can perform the erase.

Please let me know if it is OK with this suggestion.

Regards

ron2399
Associate II
Posted on June 29, 2016 at 20:51

Unfortunately, ST-LINK only runs on Windows and I'm on a unix platform.  But I did manage to figure it out.  The magic incantation turns out to be:

dfu-util -s 0:force:unprotect -a 0 -D /path-to-some-dummy-firmware-file