使用STM32CubeProgrammer可以连接到芯片,但是不能擦除
15:17:06 : STM32CubeProgrammer API v2.12.0 | Windows-64Bits
15:17:10 : ST-LINK SN : 390A070A2416303030303032
15:17:10 : ST-LINK FW : V2J41S7
15:17:10 : Board : --
15:17:10 : Voltage : 4.70V
15:17:10 : SWD freq : 4000 KHz
15:17:10 : Connect mode: Under Reset
15:17:10 : Reset mode : Hardware reset
15:17:10 : Device ID : 0x413
15:17:10 : Revision ID : Rev Y
15:17:10 : Debug in Low Power mode is not supported for this device.
15:17:11 : UPLOADING OPTION BYTES DATA ...
15:17:11 : Bank : 0x00
15:17:11 : Address : 0x40023c14
15:17:11 : Size : 4 Bytes
15:17:11 : UPLOADING ...
15:17:11 : Size : 1024 Bytes
15:17:11 : Address : 0x8000000
15:17:11 : Read progress:
15:17:11 : Data read successfully
15:17:11 : Time elapsed during the read operation is: 00:00:00.007
15:18:01 : MASS ERASE ...
15:18:01 : Error: Mass erase operation failed.Please verify flash protection
使用最新版本的STM32CUBEIDE 调试STM32F407ZGT6单片机报错信息
STMicroelectronics ST-LINK GDB server. Version 7.3.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
STM32_SystemReset(), failure reset target.
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------
Log output file: C:\Users\John9\AppData\Local\Temp\STM32CubeProgrammer_a12424.log
ST-LINK SN : 390A070A2416303030303032
ST-LINK FW : V2J41S7
Board : --
Voltage : 3.14V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x413
Revision ID : Rev Y
Device name : STM32F405xx/F407xx/F415xx/F417xx
Flash size : 1 MBytes (default)
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x91
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a12424.srec
File : ST-LINK_GDB_server_a12424.srec
Size : 39.39 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening P:\Program\STMicroelectronics\STM32CubeIDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.600.202301161003\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
|
再就是检查下是否有连接方面的问题,当然连接有问题的话,连STM32CubeProgrammer也会反映出来。
再就是检查下是否有连接方面的问题,当然连接有问题的话,连STM32CubeProgrammer也会反映出来。
你好,请问你的问题解决了吗,我也出现了这个问题。