2016-06-27 11:29 PM
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?2016-06-28 07:08 AM
Hi,
What version of the DFU are you using?Regards2016-06-28 12:46 PM
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).
2016-06-29 02:54 AM
Hi lisper,
Try using the ST-LINK Utility and check that you can perform the erase.Please let me know if it is OK with this suggestion.
Regards2016-06-29 11:51 AM
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