点击Connect to the target.检测ST-LINK/V2 (mini)与芯片相连情况。如下图
点击Program verify.点击Browse选择要下载的二进制文件,点击Start 如上图所示,则说明下载成功 如果在Keil中检测不到芯片,则可以使用STM32 ST-LINK Utility对芯片进行全片擦除(如果连接不成功,先长按复位键,在点击Connect to the target,最后在松开复位键)
点击Full chip erase.如下图所示,则表示全片擦除成功
问题:在keil中,程序可以正常下载和运行,但调试时却出现类似如下的错误?
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选项。