项目场景:
采用STM32CubeMx构建工程
问题描述:
采用STM32CubeMx构建工程后,烧写过一次,第二次无法烧写,jlink无法识别到设备。J-LINK突然不能下载(错误:JLink Warning: RESET (pin 15) high, but should be low. Please check target)
原因分析及解决方案:
原因是再SYS中的Debug模式默认为no Debug。由于我们采用的是swd debug模式,所以这里要设置成Serial Wire。
此外,采用STM32CubeMx构建工程时,需要确保路径无中文字符。否则会有问题。