STM32 Makefile的一次bug解决过程
背景 迁移华为的liteOS到STM32F4的开发板上,按照官方的步骤修改makefile后报错: arm-none-eabi-gcc.exe: warning: '-x assembler-with-cpp' after last input file has no effect arm-none-eabi-gcc.exe: fatal error: no input files compilation terminated. 解决过程 根据Makefile的报错地点可以看出是在对.S文件的编译过程中找不到文件所致,将结果打印出来: arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_STDPERIPH_DRIVER -DSTM32F407xx -DSTM32F40_41xxx -I./Inc -IProjectDrivers/Inc -IProjectDrivers/Inc/Inc -IProjectDrivers/Inc/CORE -IDrivers/CMSIS/include -I./Src/SYSTEM -I./Src/MALLOC -I./ProjectDrivers/HARDWARE