-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
175 lines (149 loc) · 4.5 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
; 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 = examples/src
test_dir = test
build_cache_dir = ./cache
[env]
test_framework = unity
;monitor_raw = yes
lib_deps =
https://github.com/nicklasb/robusto-platformio.git
build_type = debug
[env:Native]
; Linux/MacOs/Windows functionality.
platform=native
lib_extra_dirs = components, test
; If there is a way to make things work without turning of compatibility checks?
lib_compat_mode = off
build_flags =
--coverage
debug_test = *
extra_scripts =
${env.extra_scripts}
test/test-coverage.py
[env:TTGO-T-Beam_SIM7000G]
; Used with the TTGO T-BEAM SIM-7000 board
platform = [email protected]
framework = espidf
board = ttgo-t-beam
monitor_port = /dev/cu.wchusbserial54D80084791
upload_port = /dev/cu.wchusbserial54D80084791
test_port = /dev/cu.wchusbserial54D80084791
debug_test = *
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;lib_extra_dirs = test
; Better partioning
board_build.partitions = min_spiffs.csv
; Private: MAC 08b61fc0d660
lib_deps =
${env.lib_deps}
;https://github.com/jgromes/RadioLib.git
;jgromes/RadioLib@^6.0.0
[env:TTGO-T-Beam_LoRa]
; Used with the TTGO T-BEAM SX1262 TCXO board
platform = [email protected]
framework = espidf
board = ttgo-t-beam
;monitor_port = /dev/cu.wchusbserial54FC0473971
;upload_port = /dev/cu.wchusbserial54FC0473971
;test_port = /dev/cu.wchusbserial54FC0473971
monitor_port = COM4
upload_port = COM4
test_port = COM4
debug_test = *
;monitor_port = /dev/cu.wchusbserial537E0890921
;upload_port = /dev/cu.wchusbserial537E0890921
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;lib_extra_dirs = test
; Better partioning
board_build.partitions = min_spiffs.csv
; Private: MAC 08b61fc0d660
lib_deps =
${env.lib_deps}
;https://github.com/jgromes/RadioLib.git
;jgromes/RadioLib@^6.0.0
[env:Devkit_v4]
; Used with the The ESP32 devkit board
platform = [email protected]
framework = espidf
board = az-delivery-devkit-v4
monitor_port = /dev/cu.usbserial-0001
upload_port = /dev/cu.usbserial-0001
test_port = /dev/cu.usbserial-0001
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;lib_extra_dirs = test
; Better partioning
board_build.partitions = min_spiffs.csv
; --------------------------
; The RaspberryPi Pico uses picotool for uploading.
; Note: There is nothing that identifies the board, so having multiple
; boards might be a problem. TODO: Check how to specify this.
[env:RaspberryPi_Pico]
#platform = raspberrypi
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
lib_extra_dirs = test, components
test_framework= custom
#test_framework= custom
#board_build.core = earlephilhower
upload_protocol = picotool
;upload_port = /Volumes/RPI-RP2
lib_deps =
${env.lib_deps}
Wire
;https://github.com/nicklasb/RadioLib.git
;board_build.hwids = [0x2E8A,0x000A]
; monitor_port = /dev/cu.usbmodem1423301
; upload_port = /dev/cu.usbmodem1423201
; test_port = /dev/cu.usbmodem1423201
;monitor_port = /dev/cu.wchusbserial1423201
;upload_port = /dev/cu.wchusbserial1423201
;test_port = /dev/cu.wchusbserial1423201
; Do not re-enable these
;lib_deps = feilipu/FreeRTOS
;We will have to add build flags fo
;build_flags =
; -DportUSE_WDTO=WDTO_15MS
;/dev/cu.usbmodem4E8D368338001
; -------------------------------------------
; The STM32 boards are configured in two different ways:
; STM32F03C8:
; The Bluepill uses HID-Flash and a special boot loader.
; See : https://www.youtube.com/watch?v=Myon8H111PQ
; STM32F407VE:
; The black F407 uses DFU, quite plainly.
; Note that in both cases, while the first two build flags describes how
; to find and update the board, the rest defines how it presents
; itself after being updated.
[env:STM32F407VE]
platform = ststm32
board = black_f407ve
lib_extra_dirs = components, test
framework = arduino
upload_protocol = dfu
monitor_port = /dev/cu.usbmodem3679397A34311
monitor_speed = 115200
test_framework=unity
test_port = /dev/cu.usbmodem3679397A34311
test_speed = 115200
build_flags =
-D USBD_VID=0x0483
-D USBD_PID=0xdf11
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBCON
-D USB_MANUFACTURER="Unknown"
-D USB_PRODUCT="Black_STM32F4VE"
-D HAL_PCD_MODULE_ENABLED
monitor_dtr = 1