近一个月来,我频繁遇到这个问题。我过升级和降级 IDE 版本, 虽然有时问题会暂时消失,但它总会再次出现。
该问题有两种表现形式:一种是报 寄存器 0 错误,另一种是出现如下日志输出:
"Board : STLINK-V3SET
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a07300.srec
File : ST-LINK_GDB_server_a07300.srec
Size : 110.96 KB
Address : 0x08020000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 1
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.236
Verifying ...
Download verified successfully
Shutting down...
Exit."
我通常通过反复调整 “Debug Configurations” 能暂时解决这个问题,但目前还没有找到解决方法。
|