本帖最后由 Tamap 于 2024-12-10 11:50 编辑
使用lksconfig v1.1.7生成 mc081c8t8 工程,调用make后报错:lks32mc08x_periph_driver/Source/lks32mc08x_adc.c:20:10: fatal error: lks32mc08x_adc.h: No such file or directory
20 | #include "lks32mc08x_adc.h"
| ^~~~~~~~~~~~~~~~~~
查看调用命令:
arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -Iinclude -Ilks32mc08x_periph_driver\Include -ISEGGER_RTT -ILKS32MC08x -Og -Wall -fdata-sections -ffunction-sections -MMD -MP -MF"build/lks32
mc08x_adc.d" -g -gdwarf-2 -Wa,-a,-ad,-alms=build/lks32mc08x_adc.lst lks32mc08x_periph_driver/Source/lks32mc08x_adc.c -o build/lks32mc08x_adc.o
发现makefile文件的C_INCLUDES 相应行为:
-Ilks32mc08x_periph_driver\Include
,改为
-Ilks32mc08x_periph_driver/Include
后编译正常
|