在开发PY32时,使用的IAR软件,但是download and debug 时出现弹窗报错
×Wed Apr 12, 2023 18:19:04: Fatal error: Probe not found Session aborted!
Wed Apr 12, 2023 18:19:04: Unloaded macro file: D:\Program Files\IAR Systems\Embedded Workbench 9.1\arm\config\flashloader\Puya\FlashPY32F0xx.mac
Wed Apr 12, 2023 18:19:04: IAR Embedded Workbench 9.30.1 (D:\Program Files\IAR Systems\Embedded Workbench 9.1\arm\bin\armPROC.dll)
Wed Apr 12, 2023 18:19:04: File not found: D:\Program Files\IAR Systems\Embedded Workbench 9.1\arm\config\debugger\Puya\PY32.ProbeScript
Wed Apr 12, 2023 18:19:04: Loading the CMSIS-DAP driver
解决方法:
在项目project上点击鼠标右键选择options
在工程设置中“Debugger>Setup->Driver”中,将默认选择的“CMSIS DAP”修改为J-Link/J-Trace并勾选右侧的“Run to main”。就可以正常下载了