在.cfg文件中找到如下配置并更改成如下:
set CLOCK_FREQ 4000
set CONNECT_UNDER_RESET 0
set CORE_RESET 0
set CLOCK_FREQ 4000
set CONNECT_UNDER_RESET 0
set CORE_RESET 0
- SWD Frequency: 8 → 4 MHz
- This is technically not required to work, but OpenOCD will automatically revert back to 4 MHz during the upload anyway
- Reset Mode: Connect Under Reset → None
