RTOS 在 stm32f407 探索者上的移植(三) rt-thread v4.0.1 移植

  • 下载
从 https://www.rt-thread.org/ 中 下载
rt-thread v4.0.1 已经做了 stm32f407 正点原子 探索者 开发板的 移植
  • 配置
cd rt-thread/bsp/stm32/stm32f407-atk-explorer
修改 rtconfig.py 20 行
     EXEC_PATH   = r'/usr/bin'


scons --target=makefile 
生成  Makefile config.mk src.mk

----配置log

✗ scons --target=makefile 
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build/applications/main.o
CC build/board/CubeMX_Config/Src/stm32f4xx_hal_msp.o
CC build/board/board.o
CC build/kernel/components/drivers/misc/pin.o
CC build/kernel/components/drivers/serial/serial.o
CC build/kernel/components/drivers/src/completion.o
CC build/kernel/components/drivers/src/dataqueue.o
CC build/kernel/components/drivers/src/pipe.o
CC build/kernel/components/drivers/src/ringblk_buf.o
CC build/kernel/components/drivers/src/ringbuffer.o
CC build/kernel/components/drivers/src/waitqueue.o
CC build/kernel/components/drivers/src/workqueue.o
CC build/kernel/components/finsh/cmd.o
CC build/kernel/components/finsh/msh.o
CC build/kernel/components/finsh/msh_cmd.o
CC build/kernel/components/finsh/msh_file.o
CC build/kernel/components/finsh/shell.o
CC build/kernel/components/finsh/symbol.o
CC build/kernel/components/libc/compilers/minilibc/ctype.o
CC build/kernel/components/libc/compilers/minilibc/math.o
CC build/kernel/components/libc/compilers/minilibc/qsort.o
CC build/kernel/components/libc/compilers/minilibc/rand.o
CC build/kernel/components/libc/compilers/minilibc/stdlib.o
CC build/kernel/components/libc/compilers/minilibc/string.o
CC build/kernel/components/libc/compilers/minilibc/time.o
CC build/kernel/libcpu/arm/common/backtrace.o
CC build/kernel/libcpu/arm/common/div0.o
CC build/kernel/libcpu/arm/common/showmem.o
AS build/kernel/libcpu/arm/cortex-m4/context_gcc.o
CC build/kernel/libcpu/arm/cortex-m4/cpuport.o
CC build/kernel/src/clock.o
CC build/kernel/src/components.o
CC build/kernel/src/cpu.o
CC build/kernel/src/device.o
CC build/kernel/src/idle.o
CC build/kernel/src/ipc.o
CC build/kernel/src/irq.o
CC build/kernel/src/kservice.o
CC build/kernel/src/mem.o
CC build/kernel/src/mempool.o
CC build/kernel/src/object.o
CC build/kernel/src/scheduler.o
CC build/kernel/src/signal.o
CC build/kernel/src/thread.o
CC build/kernel/src/timer.o
CC /home/pop/rtos/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_usart.o
CC /home/pop/rtos/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_common.o
LINK rt-thread.elf
arm-none-eabi-objcopy -O binary rt-thread.elf rtthread.bin
arm-none-eabi-size rt-thread.elf
scons: done building targets.
  • 编译
make
在 rt-thread/bsp/stm32/stm32f407-atk-explorer 下面生成 rtthread.elf 和 rtthread.bin

---编译log

✗ make 
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_common.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_gpio.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_usart.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cec.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cryp.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cryp_ex.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c
cc /home/pop/rtos/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_usart.c
cc applications/main.c
cc board/CubeMX_Config/Src/stm32f4xx_hal_msp.c
cc board/board.c
cc /home/pop/rtos/rt-thread/components/drivers/misc/pin.c
cc /home/pop/rtos/rt-thread/components/drivers/serial/serial.c
cc /home/pop/rtos/rt-thread/components/drivers/src/completion.c
cc /home/pop/rtos/rt-thread/components/drivers/src/dataqueue.c
cc /home/pop/rtos/rt-thread/components/drivers/src/pipe.c
cc /home/pop/rtos/rt-thread/components/drivers/src/ringblk_buf.c
cc /home/pop/rtos/rt-thread/components/drivers/src/ringbuffer.c
cc /home/pop/rtos/rt-thread/components/drivers/src/waitqueue.c
cc /home/pop/rtos/rt-thread/components/drivers/src/workqueue.c
cc /home/pop/rtos/rt-thread/components/finsh/cmd.c
cc /home/pop/rtos/rt-thread/components/finsh/msh.c
cc /home/pop/rtos/rt-thread/components/finsh/msh_cmd.c
cc /home/pop/rtos/rt-thread/components/finsh/msh_file.c
cc /home/pop/rtos/rt-thread/components/finsh/shell.c
cc /home/pop/rtos/rt-thread/components/finsh/symbol.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/ctype.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/math.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/qsort.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/rand.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/stdlib.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/string.c
cc /home/pop/rtos/rt-thread/components/libc/compilers/minilibc/time.c
cc /home/pop/rtos/rt-thread/libcpu/arm/common/backtrace.c
cc /home/pop/rtos/rt-thread/libcpu/arm/common/div0.c
cc /home/pop/rtos/rt-thread/libcpu/arm/common/showmem.c
cc /home/pop/rtos/rt-thread/libcpu/arm/cortex-m4/cpuport.c
cc /home/pop/rtos/rt-thread/src/clock.c
cc /home/pop/rtos/rt-thread/src/components.c
cc /home/pop/rtos/rt-thread/src/cpu.c
cc /home/pop/rtos/rt-thread/src/device.c
cc /home/pop/rtos/rt-thread/src/idle.c
cc /home/pop/rtos/rt-thread/src/ipc.c
cc /home/pop/rtos/rt-thread/src/irq.c
cc /home/pop/rtos/rt-thread/src/kservice.c
cc /home/pop/rtos/rt-thread/src/mem.c
cc /home/pop/rtos/rt-thread/src/mempool.c
cc /home/pop/rtos/rt-thread/src/object.c
cc /home/pop/rtos/rt-thread/src/scheduler.c
cc /home/pop/rtos/rt-thread/src/signal.c
cc /home/pop/rtos/rt-thread/src/thread.c
cc /home/pop/rtos/rt-thread/src/timer.c
cc /home/pop/rtos/rt-thread/libcpu/arm/cortex-m4/context_gcc.S
------------------------------------------------
link rtthread.elf
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol Reset_Handler; defaulting to 0000000008000000
------------------------------------------------
   text    data     bss     dec     hex filename
  29800    1208    1320   32328    7e48 rtthread.elf
发布了283 篇原创文章 · 获赞 41 · 访问量 15万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览