forked from devanlai/dapboot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
35 lines (34 loc) · 1.1 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
[platformio]
src_dir = src
[env:keyboardio_model_100]
platform = ststm32
board = genericSTM32F103C8
framework = libopencm3
; add correct folder to include path so that config.h
; is sourced from that folder.
; also add other needed build flags
build_flags =
-Isrc/stm32f103/keyboardio_model_100
-Lsrc
-DSEMIHOSTING=0
-mfix-cortex-m3-ldrd
-Wl,-Map=dapboot.map
-std=gnu11
-msoft-float
-flto
; dynamically add-in git revision and change firmware name
extra_scripts =
pre:change_fw_name.py
add_gitversion.py
; correct linker script to the explicit one in this repo
board_build.ldscript = src/stm32f103/stm32f103x8.ld
; use custom libopencm3 fork
; must be kept in sync with what libopencm3 in the main repo is pointing at
platform_packages =
framework-libopencm3@https://github.com/keyboardio/libopencm3.git#keyboardio-dapboot
; exclude files form build
src_filter = +<*> -<stm32l1/> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<stm32f103/keyboardio_micro/>
debug_build_flags = -Os -ggdb3
upload_flags = -c set CPUTAPID 0x2ba01477
debug_tool = stlink
;debug_build_flags = -Os -ggdb3 -g3