RT-Thread·

STM32-----vscde platformio移植RT-Thread的platformio.ini配置案例

Hugh

Hugh

283 0
; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

;cubemx STM32F407VETx_FLASH.ld 有bug,网上找一个试试
;startup_stm32f407xx.s放到Core/Src目录下,main改为entry

[platformio]
src_dir = ./
[env:genericSTM32F407VET6]
platform = ststm32
board = genericSTM32F407VET6
;framework = stm32cube
build_unflags = 
  --gc-sections
  -Os
build_flags = 
  -Wl,-Map,output.map
  -O0
 -DUSE_HAL_DRIVER
 -DSTM32F407xx

 -ICore/Inc 
 -IDrivers/STM32F4xx_HAL_Driver/Inc 
 -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy 
 -IDrivers/CMSIS/Device/ST/STM32F4xx/Include 
 -IDrivers/CMSIS/Include
 -IRT-Thread 
 -IMiddlewares/Third_Party/RealThread_RTOS_RT-Thread/components/finsh
 -IMiddlewares/Third_Party/RealThread_RTOS_RT-Thread/include

build_src_filter = +<Core/src/> +<startup_stm32f407xx.s> +<Drivers/> +<Middlewares/>
board_build.ldscript = ./STM32F407VETx_FLASH.ld
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
debug_init_break =
;extra_scripts = pre:CubeMX_script.py

STM32F407VETxFLASHcopygood.ld

所属系列

从当前文章继续阅读它所在合集中的前后内容。

相关文章

优先推荐同专题、同标签和同作者内容,补足热门文章。

评论 0

登录 后参与评论

评论

成为第一个评论的人