-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathplatformio.ini
48 lines (43 loc) · 1.2 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
; 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 = controller
[env]
build_flags =
-DUSBCON -DUSBD_USE_CDC -DENABLE_HWSERIAL1
-DU8G2_16BIT
-DSERIAL_RX_BUFFER_SIZE=256
;-Wl,-u_printf_float
-Wl,-Map,firmware.map
build_src_flags =
-Wall
-Werror
-Wno-deprecated-declarations
[env:controller]
platform = ststm32 @ ^14.1.0
board = genericSTM32F103CB
framework = arduino
lib_deps =
SPI
arduino-libraries/SD @ ^1.2.4
u8g2 @ 2.28.8
Embedded Template Library @ 19.3.5
;extra_scripts = pre:custom.py
;debug_tool = stlink
debug_tool = custom
debug_server =
$PLATFORMIO_CORE_DIR/packages/tool-openocd/bin/openocd
-s $PLATFORMIO_CORE_DIR/packages/tool-openocd/scripts
-c "set FLASH_SIZE 0x20000"
-f interface/stlink.cfg
-c "transport select hla_swd"
-f target/stm32f1x.cfg
upload_protocol = stlink
upload_flags = -c set FLASH_SIZE 0x20000