STM32学习错误垃圾桶

1、 构建固件库常见出现错误: 4个core_cm3编译错误

compiling core_cm3.c...
CMSIS/core_cm3.c(445): error: non-ASM statement in naked function is not supported
CMSIS/core_cm3.c(465): error: parameter references not allowed in naked functions
CMSIS/core_cm3.c(479): error: non-ASM statement in naked function is not supported
CMSIS/core_cm3.c(499): error: parameter references not allowed in naked functions

解决方法:(更换编译器) Options for Target  -> Target -> Code Gen...ARM Compiler 更换成v5 

2、 Keil产生错误:FCARM - Output Name not specified, please check 'Options for Target - Utilities'

  解决方法: 文件存在错误导入,存在文件以Image.file(*.*)进行导入, 因此对file右键Option_for_File 设置文件类型即可

3、 FreeRTOS下FatFs初始化失败(CubeMX 搭建存在该问题)

  注意手动添加 SD驱动初始化(常为 BSP_SD_Init ) 放在 FatFs初始化(MX_FATFS_Init) 之前且须在线程中

posted @ 2021-07-26 16:18  Noctis凌锐  阅读(953)  评论(0)    收藏  举报