点击Connect to the target.检测ST-LINK/V2 (mini)与芯片相连情况。如下图
点击Program verify.点击Browse选择要下载的二进制文件,点击Start 如上图所示,则说明下载成功 如果在Keil中检测不到芯片,则可以使用STM32 ST-LINK Utility对芯片进行全片擦除(如果连接不成功,先长按复位键,在点击Connect to the target,最后在松开复位键)
点击Full chip erase.如下图所示,则表示全片擦除成功
问题:
使用 STM32 ST-LINK Utility,程序无法正常下载。报错
Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
答复:
Target --> Settings --> Mode 选择 Connect Under Reset
Cannot access Memory
Error while accessing a target resource. The resource is perhaps not available or a wrong access was attempted.
*** error 57: illegal address (0x08000000)
答复:
在Options for Target --> Debug --> Settings --> Debug --> Download Options对话框中取消勾选Download to Flash选项。