rtthread 中 我使用scons -dist —target=mdk5 导出
STM32f103-blue-pill 的bsp工程 在keil中编译报错:
- *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'E:Keil_v5ARMARMCCBin'
- Build target 'rt-thread'
- compiling cunistd.c...
- compiling cwchar.c...
- compiling cctype.c...
- compiling syscall_mem.c...
- compiling syscalls.c...
- compiling cstdlib.c...
- compiling cstring.c...
- compiling ctime.c...
- compiling device.c...
- compiling completion_comm.c...
- compiling pipe.c...
- compiling completion_up.c...
- compiling ringbuffer.c...
- compiling ringblk_buf.c...
- compiling dataqueue.c...
- compiling condvar.c...
- rt-threadcomponentsdriversipccondvar.c(50): warning: #68-D: integer conversion resulted in a change of sign
- if (timeout != RT_WAITING_FOREVER)
- rt-threadcomponentsdriversipccondvar.c: 1 warning, 0 errors
- compiling waitqueue.c...
- compiling drv_usart.c...
- librariesHAL_Driversdriversdrv_usart.c(16): error: #5: cannot open source input file "board.h": No such file or directory
- #include "board.h"
- librariesHAL_Driversdriversdrv_usart.c: 0 warnings, 1 error
- compiling drv_gpio.c...
- librariesHAL_Driversdriversdrv_gpio.c(15): error: #5: cannot open source input file "board.h": No such file or directory
- #include
- librariesHAL_Driversdriversdrv_gpio.c: 0 warnings, 1 error
- compiling drv_common.c...
- librariesHAL_Driversdrv_common.h(15): error: #5: cannot open source input file "board.h": No such file or directory
- #include
- librariesHAL_Driversdrv_common.c: 0 warnings, 1 error
- compiling dev_pin.c...
- compiling shell.c...
- compiling workqueue.c...
- compiling cmd.c...
- compiling dev_serial.c...
- compiling msh.c...
- compiling msh_parse.c...
- compiling clock.c...
- compiling components.c...
- compiling cpu_up.c...
- compiling defunct.c...
- compiling irq.c...
- compiling idle.c...
- compiling mempool.c...
- compiling kservice.c...
- compiling memheap.c...
- compiling ipc.c...
- compiling object.c...
- compiling scheduler_comm.c...
- rt-threadsrcscheduler_comm.c(484): warning: #1-D: last line of file ends without a newline
- #endif /* RT_USING_OVERFLOW_CHECK */
- rt-threadsrcscheduler_comm.c: 1 warning, 0 errors
- compiling thread.c...
- compiling kstdio.c...
- compiling scheduler_up.c...
- rt-threadsrcscheduler_up.c(719): warning: #1-D: last line of file ends without a newline
- /**@endcond*/
- rt-threadsrcscheduler_up.c: 1 warning, 0 errors
- compiling kstring.c...
- compiling timer.c...
- compiling rt_vsnprintf_tiny.c...
- compiling div0.c...
- compiling atomic_arm.c...
- assembling context_rvds.S...
- assembling startup_stm32f103xb.s...
- compiling showmem.c...
- compiling rt_vsscanf.c...
- compiling kerrno.c...
- compiling cpuport.c...
- compiling system_stm32f1xx.c...
- packagesstm32f1_cmsis_driver-latestIncludestm32f1xx.h(140): error: #35: #error directive: "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)"
- #error "Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)"
- packagesstm32f1_cmsis_driver-latestSourceTemplatessystem_stm32f1xx.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_uart.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_uart.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_usart.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_usart.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_gpio_ex.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_gpio_ex.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_dma.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_dma.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_crc.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_crc.c: 0 warnings, 1 error
- compiling stm32f1xx_hal.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_gpio.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_gpio.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_cortex.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_cortex.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_rcc.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_rcc.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_cec.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_cec.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_pwr.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_pwr.c: 0 warnings, 1 error
- compiling stm32f1xx_hal_rcc_ex.c...
- packagesstm32f1_hal_driver-latestIncstm32f1xx_hal.h(29): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory
- #include "stm32f1xx_hal_conf.h"
- packagesstm32f1_hal_driver-latestSrcstm32f1xx_hal_rcc_ex.c: 0 warnings, 1 error
- ".buildkeilObjrt-thread.axf" - 16 Error(s), 3 Warning(s).
- Target not created.
- Build Time Elapsed: 00:00:07