芯片:stm32f103c8t6,用的淘宝买的STLINK V2 U盘类型的烧录仿真器。IAR开发环境,SWD方式连接,只接了三根线,swclk,swdio,gnd,外接电源,驱动什么的都正常,debug里面也选择了swd方式,新建了一个项目,编译正常,就是连接提示Fatal error: Failed to read CPUID for Cortex device Session aborted! 完整提示:
Sat Jun 03, 2017 10:33:10: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\debugger\ST\STM32F1xx_XL.dmac
Sat Jun 03, 2017 10:33:10: Connected to ST-Link/V2 Firmware V2.J21.S4 (Probe no: 61395871)
Sat Jun 03, 2017 10:33:10: Selecting SWD as current target interface.
Sat Jun 03, 2017 10:33:10: Hardware reset with strategy 0 was performed
Sat Jun 03, 2017 10:33:10: Initial reset was performed
Sat Jun 03, 2017 10:33:12: Fatal error: Failed to read CPUID for Cortex device Session aborted!
有遇到的么?来点提示
|