一、cubemx生成工程后添加自己写的.c .h文件,.c文件引用#include "stm32f1xx_hal_can.h"后编译错误:
c…/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h(277): error: #20: identifier “HAL_StatusTypeDef” is undefined
解决方法:
在自己的写的.c文件头部添加 #include “stm32f1xx_hal.h”,注意是最开头处添加
stm32cubemx 生成工程开发问题集锦
最新推荐文章于 2024-02-19 16:32:19 发布