Keil5 报错信息如下:
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\keil5\ARM\ARMCC\Bin'
Build target 'project'
assembling startup_stm32g474xx.s...
startup_stm32g474xx.s(44): error: A1163E: Unknown opcode MODULE , expecting opcode or Macro
startup_stm32g474xx.s(47): error: A1163E: Unknown opcode SECTION , expecting opcode or Macro
startup_stm32g474xx.s(49): error: A1163E: Unknown opcode SECTION , expecting opcode or Macro
startup_stm32g474xx.s(53): error: A1163E: Unknown opcode PUBLIC , expecting opcode or Macro
startup_stm32g474xx.s(55): error: A1159E: Label missing from line start
startup_stm32g474xx.s(56): error: A1355U: A Label was found which was in no AREA
"project\project.axf" - 6 Error(s), 0 Warning(s).
使用可以正常运行的startup_stm32g474xx.s文件替换当前工程的文件startup_stm32g474xx.s;

重新再次编译,没有错误。
浙公网安备 33010602011771号