Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
259 lines (247 loc) · 9 KB
/
Copy pathplatformio.ini
File metadata and controls
259 lines (247 loc) · 9 KB
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
; 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]
description = ESP32 GPS Navigator
default_envs = ICENAV_BOARD
[common]
; The platform and the PlatformIO core install their own tool-scons into the same package
; directory, so both pins below must name the same SCons: 55.03.312-1 requires 4.41101.0, which
; is what PlatformIO 6.2.0 and pioarduino 6.2.0 bring. A mismatch makes the platform delete the
; core SCons and the link then fails, see issue #390 and the guard in prebuild.py.
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.312-1/platform-espressif32.zip
framework = arduino
version = 0.3.3
revision = 01
monitor_speed = 115200
;monitor_rts = 0
;monitor_dtr = 0
monitor_filters =
esp32_exception_decoder
extra_scripts = pre:prebuild.py
build_unflags =
-std=gnu++11
-std=c++11
-std=gnu++14
-std=c++14
build_flags =
-O3
-std=gnu++17
-Wno-error=return-type
-D LV_CONF_PATH="\"${PROJECT_DIR}/lib/lvgl/lv_conf.h\""
-D CORE_DEBUG_LEVEL=0
-D DISABLE_RADIO=1
-D BAUDRATE=115200
-D SHELLMINATOR_BUFF_LEN=70
-D SHELLMINATOR_BUFF_DIM=70
-D SHELLMINATOR_LOGO_COLOR=BLUE
-D COMMANDER_MAX_COMMAND_SIZE=70
-D WCLI_MAX_CMDS=12 # set n+1 of defined commands for CLI
; -D DISABLE_CLI_TELNET=1 # disable remote access via telnet. It needs CLI
; -D DISABLE_CLI=1 # removed CLI module. Config via Bluetooth only
lib_deps =
; slashdevin/NeoGPS@4.2.9
https://github.com/jgauchia/NeoGPS.git#43c47665f3f8a1b809d809d9f685b376edd40238
;https://github.com/lovyan03/LovyanGFX.git#3f78b70
lovyan03/LovyanGFX@1.2.31
lvgl/lvgl@9.5.0
hpsaturn/EasyPreferences@0.1.4
hpsaturn/ESP32 Wifi CLI@0.3.6
jpb10/SolarCalculator@2.0.2
[esp32_common]
extends = common
; All boards use LittleFS, and the firmware mounts LittleFS on every target
; (Storage::initSPIFFS), so the image and the mount always match. SPIFFS images
; are not reliably recognized on the P4 flash, and the platform already defaults
; to littlefs, so making it explicit keeps both sides pinned together.
board_build.filesystem = littlefs
; Partition table (csv committed under partitions/). It must be reachable by path: the
; platform reads build.partitions, not the board's build.arduino.partitions, and falls
; back to partitions_singleapp.csv when it finds nothing. That fallback has no data
; partition, so uploadfs fails with "Could not find the any filesystem section".
; Sized for the 16 MB boards; the 8 MB and 32 MB ones override it.
board_build.partitions = partitions/default_16MB.csv
[env:ICENAV_BOARD]
;build_type = debug
extends = esp32_common
board = icenav-esp32-s3
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:TDECK_ESP32S3]
extends = esp32_common
board = T-Deck
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBATT_ADC_UNIT=1
-DBATT_ADC_CHANNEL=3
-DPOWER_SAVE
-DAT6558D_GPS
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:ELECROW_ESP32]
extends = esp32_common
board = elecrow-esp32-s3-n16r8v-terminal
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBATT_ADC_UNIT=2
-DBATT_ADC_CHANNEL=6
-DPOWER_SAVE
;-DAT6558D_GPS
;-DCOMPASS_AUTO
;-DBME280
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:MAKERF_ESP32S3]
extends = esp32_common
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
board_build.partitions = partitions/default_8MB.csv
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
-DBATT_ADC_UNIT=1
-DBATT_ADC_CHANNEL=3
;-DAT6558D_GPS
;-DIMU_MPU9250
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:ESP32S3_N16R8]
extends = esp32_common
board = esp32-s3-devkitc-1-n16r8v
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
;-DADC1
-DILI9341_NOTOUCH_SPI
;-DAT6558D_GPS
;-DCOMPASS_AUTO
;-DBME280
-DSPI_SHARED
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:T4_S3]
extends = esp32_common
board = T-Display-AMOLED
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DPOWER_SAVE
-DT4_S3
-DARDUINO_USB_CDC_ON_BOOT=1
;-DCOMPASS_AUTO
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
[env:WAVESHARE_P4_35]
extends = esp32_common
board = waveshare-esp32-p4-35
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
-DPOWER_SAVE
-DINVERT_BOOT_PIN
; -DAT6558D_GPS
; -DBME280
; -DCOMPASS_AUTO
; -DMPU6050
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
; P4 WiFi comes from managed components esp_hosted/esp_wifi_remote (versions from the stock
; dependencies.lock). Without them the libs recompile drops CONFIG_ESP_WIFI_REMOTE_* and
; WiFi.h is left empty (Shellminator/WifiCLI fail to build).
custom_component_add =
espressif/esp_hosted@2.12.8
espressif/esp_wifi_remote@1.0.2
espressif/wifi_remote_over_eppp@0.3.2
[env:WAVESHARE_P4_43]
extends = esp32_common
board = waveshare-esp32-p4-43
board_build.partitions = partitions/default_32MB.csv
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
; -DAT6558D_GPS
; -DBME280
; -DCOMPASS_AUTO
; -DMPU6050
-DPOWER_SAVE
-DBATT_ADC_UNIT=1
-DBATT_ADC_CHANNEL=4
-DBATT_DIVIDER_R1=200000
-DBATT_DIVIDER_R2=100000
; FatFS fast-seek: CLMT in PSRAM for random access to the custom vector maps pack on SD.
; custom_sdkconfig is pioarduino-specific: generates sdkconfig.defaults and recompiles the IDF libs.
custom_sdkconfig =
CONFIG_FATFS_USE_FASTSEEK=y
CONFIG_FATFS_FAST_SEEK_BUFFER_SIZE=65536
; esp-modbus 2.1.3 asserts MAX_API_BLOCKING >= TIMEOUT (stock had TIMEOUT=10000, no MAX).
CONFIG_FMB_MASTER_MAX_API_BLOCKING_TIME_MS=10000
; P4 WiFi comes from managed components esp_hosted/esp_wifi_remote (versions from the stock
; dependencies.lock). Without them the libs recompile drops CONFIG_ESP_WIFI_REMOTE_* and
; WiFi.h is left empty (Shellminator/WifiCLI fail to build).
custom_component_add =
espressif/esp_hosted@2.12.8
espressif/esp_wifi_remote@1.0.2
espressif/wifi_remote_over_eppp@0.3.2