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:\projects\micropos_proto1\Debug\micropos_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.

 

 

 

posted @ 2019-12-03 09:30  M&D  阅读(4718)  评论(0编辑  收藏  举报