forked from rhapsodyv/OpenBLT-STM32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
49 lines (42 loc) · 1.56 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; 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]
default_envs = SPI
include_dir = src
src_dir = src
[common_env]
framework = arduino
platform = ststm32
build_flags = -Isrc -Isrc/stm32 -fmax-errors=5 -g3 -Os -includesrc/Config.h
upload_protocol = jlink
debug_tool = jlink
board_upload.offset_address = 0x08000000
extra_scripts = pre:src/build.py
[env:genericSTM32F407VET6]
board = genericSTM32F407VET6
build_flags = -DHAL_SD_MODULE_ENABLED
[env:genericSTM32F103VE]
board = genericSTM32F103VE
[env:SDIO]
extends = common_env
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
build_flags = ${common_env.build_flags} -DSD_HW_FLOW_CTRL #-DHAL_SD_MODULE_ENABLED
lib_deps = ChanFatFs #stm32duino/FatFs, stm32duino/STM32duino STM32SD
; board = genericSTM32F407VET6
board = genericSTM32F103VE
[env:SPI]
extends = common_env
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
build_flags = ${common_env.build_flags} -Isrc/sd_spi/ #-DHAL_SD_MODULE_ENABLED
lib_deps = ChanFatFs #, arduino-libraries/SD
board = genericSTM32F405RG
; board = genericSTM32F407VGT6
; board = genericSTM32F407VET6
; board = genericSTM32F103VE