STM32·

STM32-----vscode stm32 cubeMX FATFS paltformio.ini配置案例

Hugh

Hugh

236 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
[platformio]
src_dir = ./
[env:genericSTM32F103VE]
platform = ststm32
board = genericSTM32F103VE
;framework = stm32cube(不用该框架:使用platformio自己下载的HAL库与cubeMx添加的库有可能版本不一致,导致运行出错)
upload_protocol = cmsis-dap
build_unflags = 
  ;--gc-sections
 ; -O
build_flags =
 ;-Wl,-Map,output.map
 ; -O0
 -DUSE_HAL_DRIVER
 -DSTM32F103xE
 -ICore/Inc 
 -IDrivers/STM32F1xx_HAL_Driver/Inc 
 -IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy 
 -IDrivers/CMSIS/Device/ST/STM32F1xx/Include 
 -IDrivers/CMSIS/Include 
 -IFATFS/Target 
 -IFATFS/App 
 -IMiddlewares/Third_Party/FatFs/src

build_src_filter = +<Core/Src> +<startup_stm32f103xb.s> +<Drivers/> +<Middlewares/> +<FATFS/>
board_build.ldscript = ./STM32F103VETx_FLASH.ld ;cubeMX 6.12.1生成的.ld该模式下运行错误,退回到版本6.12.0正常。

所属系列

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

相关文章

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

评论 0

登录 后参与评论

评论

成为第一个评论的人