在烧录G474例程到官方NIclue板子上时,使用keil5.26进行的烧录全部报错,cudemx生成的工程文件出现相同情况。 列出一部分烧录的报错: Load "ADC_GainCompensation\\Exe\\ADC_GainCompensation.axf" Erase Done. Programming Done. Contents mismatch at: 08001800H (Flash=00H Required=80H) ! Contents mismatch at: 08001801H (Flash=00H Required=71H) ! Contents mismatch at: 08001802H (Flash=00H Required=C9H) ! Contents mismatch at: 08001803H (Flash=00H Required=F8H) ! Contents mismatch at: 08001805H (Flash=00H Required=10H) ! Contents mismatch at: 08001806H (Flash=00H Required=FFH) ! Contents mismatch at: 08001807H (Flash=00H Required=F7H) ! Contents mismatch at: 08001808H (Flash=00H Required=EDH) ! Contents mismatch at: 08001809H (Flash=00H Required=FEH) ! Contents mismatch at: 0800180AH (Flash=00H Required=80H) ! Contents mismatch at: 0800180BH (Flash=00H Required=46H) ! Contents mismatch at: 0800180CH (Flash=00H Required=06H) ! Contents mismatch at: 0800180DH (Flash=00H Required=E0H) ! Contents mismatch at: 0800180FH (Flash=00H Required=BFH) ! Contents mismatch at: 08001810H (Flash=00H Required=FFH) ! Contents mismatch at: 08001811H (Flash=00H Required=F7H) ! Contents mismatch at: 08001812H (Flash=00H Required=E8H) ! Contents mismatch at: 08001813H (Flash=00H Required=FEH) ! Contents mismatch at: 08001814H (Flash=00H Required=A0H) ! Contents mismatch at: 08001815H (Flash=00H Required=EBH) ! Contents mismatch at: 08001816H (Flash=00H Required=08H) ! Contents mismatch at: 08001818H (Flash=00H Required=02H) ! Contents mismatch at: 08001819H (Flash=00H Required=28H) ! Contents mismatch at: 0800181AH (Flash=00H Required=2BH) ! Contents mismatch at: 0800181BH (Flash=00H Required=D8H) ! Contents mismatch at: 0800181CH (Flash=00H Required=D9H) ! Contents mismatch at: 0800181DH (Flash=00H Required=F8H) ! Contents mismatch at: 08001820H (Flash=00H Required=C0H) ! Contents mismatch at: 08001821H (Flash=00H Required=05H) ! Contents mismatch at: 08001822H (Flash=03H Required=F5H) ! Contents mismatch at: 08001823H (Flash=C0H Required=D5H) ! Contents mismatch at: 08001824H (Flash=00H Required=D5H) ! Contents mismatch at: 08001825H (Flash=0FH Required=F8H) ! Contents mismatch at: 08001826H (Flash=F0H Required=90H) ! Contents mismatch at: 08001828H (Flash=1CH Required=10H) ! Contents mismatch at: 08001829H (Flash=38H Required=F4H) ! Contents mismatch at: 0800182AH (Flash=00H Required=40H) ! Contents mismatch at: 0800182BH (Flash=38H Required=70H) ! Contents mismatch at: 0800182CH (Flash=1CH Required=14H) ! Contents mismatch at: 0800182DH (Flash=00H Required=D0H) ! Contents mismatch at: 0800182EH (Flash=30H Required=21H) ! Contents mismatch at: 0800182FH (Flash=0CH Required=6DH) ! Contents mismatch at: 08001830H (Flash=00H Required=81H) ! Contents mismatch at: 08001831H (Flash=30H Required=42H) ! Contents mismatch at: 08001832H (Flash=0CH Required=11H) ! Contents mismatch at: 08001833H (Flash=00H Required=D0H) ! Contents mismatch at: 08001834H (Flash=30H Required=D5H) ! Contents mismatch at: 08001835H (Flash=0CH Required=F8H) ! Contents mismatch at: 08001836H (Flash=00H Required=90H) ! Contents mismatch at: 08001837H (Flash=38H Required=00H) ! Contents mismatch at: 08001838H (Flash=1CH Required=D5H) ! Contents mismatch at: 08001839H (Flash=00H Required=F8H) ! Contents mismatch at: 0800183AH (Flash=1CH Required=90H) ! Contents mismatch at: 0800183BH (Flash=38H Required=10H) ! Contents mismatch at: 0800183CH (Flash=00H Required=20H) ! Contents mismatch at: 0800183DH (Flash=0FH Required=F4H) ! Contents mismatch at: 0800183EH (Flash=F0H Required=40H) ! Contents mismatch at: 0800183FH (Flash=00H Required=70H) ! Contents mismatch at: 08001840H (Flash=03H Required=41H) ! Contents mismatch at: 08001841H (Flash=C0H Required=F4H) ! Contents mismatch at: 08001842H (Flash=00H Required=80H) ! Contents mismatch at: 08001843H (Flash=00H Required=31H) ! Contents mismatch at: 08001844H (Flash=00H Required=C5H) ! Contents mismatch at: 08001845H (Flash=00H Required=F8H) ! Contents mismatch at: 08001846H (Flash=00H Required=90H) ! Contents mismatch at: 08001847H (Flash=00H Required=10H) ! Contents mismatch at: 08001848H (Flash=00H Required=D5H) ! Contents mismatch at: 08001849H (Flash=00H Required=F8H) ! Contents mismatch at: 0800184AH (Flash=00H Required=90H) ! Contents mismatch at: 0800184BH (Flash=00H Required=10H) ! Contents mismatch at: 0800184CH (Flash=00H Required=21H) ! Contents mismatch at: 0800184DH (Flash=00H Required=F4H) ! Contents mismatch at: 0800184EH (Flash=00H Required=80H) ! Contents mismatch at: 0800184FH (Flash=00H Required=31H) ! Contents mismatch at: 08001850H (Flash=00H Required=C5H) ! Contents mismatch at: 08001851H (Flash=00H Required=F8H) ! Contents mismatch at: 08001852H (Flash=00H Required=90H) ! Contents mismatch at: 08001853H (Flash=00H Required=10H) ! Contents mismatch at: 08001854H (Flash=00H Required=C5H) ! Contents mismatch at: 08001855H (Flash=00H Required=F8H) ! Contents mismatch at: 08001856H (Flash=00H Required=90H) ! Contents mismatch at: 08001858H (Flash=00H Required=C0H) ! Contents mismatch at: 08001859H (Flash=00H Required=07H) ! Contents mismatch at: 0800185AH (Flash=00H Required=11H) ! Contents mismatch at: 0800185BH (Flash=00H Required=D0H) ! Contents mismatch at: 0800185CH (Flash=00H Required=FFH) ! Contents mismatch at: 0800185DH (Flash=00H Required=F7H) ! Contents mismatch at: 0800185EH (Flash=00H Required=C2H) ! Contents mismatch at: 0800185FH (Flash=00H Required=FEH) ! Contents mismatch at: 08001860H (Flash=00H Required=80H) ! Contents mismatch at: 08001861H (Flash=00H Required=46H) ! Contents mismatch at: 08001862H (Flash=00H Required=41H) ! Contents mismatch at: 08001863H (Flash=00H Required=F2H) ! Contents mismatch at: 08001864H (Flash=00H Required=88H) ! Contents mismatch at: 08001865H (Flash=00H Required=39H) ! Contents mismatch at: 08001866H (Flash=00H Required=07H) ! Contents mismatch at: 08001867H (Flash=00H Required=E0H) ! Contents mismatch at: 08001868H (Flash=00H Required=FFH) ! Contents mismatch at: 08001869H (Flash=00H Required=F7H) ! Contents mismatch at: 0800186AH (Flash=7BH Required=BCH) ! Too many errors to display ! Error: Flash Download failed - "Cortex-M4" 这是目前出现的情况。 问题有点严重,官方例程,官方开发板,生成例程全部不可用。 望早日解决 |
希望这次事件能多少帮助到大家。
2、在STLINK Utility工具中对Flash进行整片删除一次试试看。
更详细的情况是,在Jlink下载成功一次后,STlinkV3也可以成功下载了,但一旦编译一次后,也开始报错。
拖曳式下载同样不能改变单片机中的程序。
使用ST官方烧写工具同样可以将程序强制烧录进单片机,可以自动检测单片机型号,比较方便,烧录后也可以进行调试,就是稍微慢了一些,这是目前的一个解决方案。大家可以参考一下,STlinkV3全系列应该还没有和G4系列做兼容,这是目前分析的到的结论。
无法打开官方工具,但programmer可以连接并下载,单片机型号选择无误。
目前使用programmer勉强工作中,使用类似51的下载方法,HEX文件有变化就触发下载,另外使用串口调试,不算太影响工作。
MDK版本,还有ST LINK驱动版本问题
可以参考我的G4的NUCLEO底板+电机板的开源资料
评分
查看全部评分
感谢!资料是在你发过帖子里吗?我去找找