
Error in final launch sequence: Failed to execute MI command: load E:\STM32Cube\STM32CubeIDE\workspace_1.13.1\Controller_STM32F030C8T6\Debug\Controller_STM32F030C8T6.elf Error message from debugger back end: Error finishing flash operation Failed to execute MI command: load E:\STM32Cube\STM32CubeIDE\workspace_1.13.1\Controller_STM32F030C8T6\Debug\Controller_STM32F030C8T6.elf Error message from debugger back end: Error finishing flash operation Failed to execute MI command: load E:\STM32Cube\STM32CubeIDE\workspace_1.13.1\Controller_STM32F030C8T6\Debug\Controller_STM32F030C8T6.elf Error message from debugger back end: Error finishing flash operation Error finishing flash operation |
STM32CubeProgrammer烧录程序均没问题。
Verifying ...
Error: Data mismatch found at address 0x08000B40 (byte = 0x00 instead of 0x0F)
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.0.202305091550\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
[md]上面是Console的提示信息。
这已经是一个非常简单的程序了,只是新建了一个工程,没有增加其它代码。
STMicroelectronics ST-LINK GDB server. Version 7.4.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Log output file: C:\Users\28388\AppData\Local\Temp\STM32CubeProgrammer_a00032.log
ST-LINK SN : 49FF6A065066505221551987
ST-LINK FW : V2J42S7
Board : --
Voltage : 3.13V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x440
Revision ID : Rev 2.0
Device name : STM32F05x/F030x8
Flash size : 64 KBytes
Device type : MCU
Device CPU : Cortex-M0
BL Version : 0x21
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a00032.srec
File : ST-LINK_GDB_server_a00032.srec
Size : 3.80 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 3]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.330
Verifying ...
Error: Data mismatch found at address 0x08000828 (byte = 0x00 instead of 0x7B)
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.0.202305091550\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
用已知的例程去试试,如果不行,就说明方式的设置哪里行不通。
如果可以,那么就可以对比代码是不是有差异。
我也是同样的问题,请问您解决了吗?
我也遇到过,可能是你修改了优化等级,调成无优化就容易出现这个问题。重新设置一下优化等级,可能会有用