SW4STM32 : Error message from debugger back end: Error erasing flash with vFlashErase packet Error erasing flash with vFlashErase packet

在使用SW4STM32创建新的工程编译OK,准备Debug Run的时候出现以下错误 

 第一反应是SWD的线接错了,然后使用STM32 ST-LINK Utility 擦除和烧写都没问题,说明硬件没问题。

然后在SW4STM32的Debug设置上找问题:在STM32论坛寻找一番找到了解决的方法如下

With this error:

Error in final launch sequence
Failed to execute MI command:
load C:projectsmicropos_proto1Debugmicropos_proto1.elf

Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet

Did the following ...

Debug > Debug Configuration.. > Ac6 STM32 Debugging > 1 Debug > Debagger > Show generator options.. > Reset mode: software system reset.

Good luck.

 

原文地址:https://www.cnblogs.com/mickey-double/p/11974805.html