-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
115 lines (104 loc) · 3.11 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
;env_default = pro8MHzatmega328promini
env_default = bluepill_f103c8bmp
; Pro mini: avrdude -C/opt/arduino-1.8.1/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_154086/sketch_mar23a.ino.hex:i
[env:pro8MHzatmega328promini]
platform = atmelavr
framework = arduino
board = pro8MHzatmega328
upload_port = /dev/ttyUSB1
;upload_speed = 57600
upload_flags = -D -v
lib_deps =
Automaton
; black magic probe
[env:bluepill_f103c8bmp]
platform = ststm32
board = bluepill_f103c8
framework = arduino
lib_deps =
Automaton
; -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 uses current so we disable it
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -USERIAL_USB
upload_protocol = blackmagic
; dfu with stm32duino bootloader
[env:bluepill_f103c8dfu]
platform = ststm32
board = bluepill_f103c8
framework = arduino
lib_deps =
Automaton
; -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 uses current so we disable it
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
upload_port = /dev/ttyUSB1
upload_protocol = dfu
; black magic probe
[env:genericSTM32F103C8bmp]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
lib_deps =
MySensors
Automaton
; -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 uses current so we disable it
;build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -USERIAL_USB
upload_protocol = blackmagic
;serial
[env:genericSTM32F103C8serial]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
lib_deps =
MySensors
Automaton
; -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 uses current so we disable it
;build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -USERIAL_USB
upload_protocol = serial
upload_port = ttyACM1
[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
lib_deps =
upload_protocol = stlink
upload_port = /dev/ttyACM0
; For ISP:
[env:pro8MHzatmega328isp]
platform = atmelavr
framework = arduino
lib_deps =
board = pro8MHzatmega328
upload_protocol = stk500v1
upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED
upload_speed = 19200
upload_port = /dev/ttyUSB0
[env:genericSTM32F103C8stlink]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
lib_deps =
upload_protocol = stlink
upload_port = /dev/ttyACM0
[env:atmega328asp]
platform = atmelavr
framework = arduino
upload_protocol = usbasp
upload_flags = -Pusb
board = pro8MHzatmega328