-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplatformio.ini
167 lines (156 loc) · 6.05 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
; 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 = seeed_xiao_esp32c3_debug
; Optional: can list multiple defaults like: default_envs = seeed_xiao_esp32c3_debug, seeed_xiao_esp32c3_release
description = SOTACAT: Elecraft KX CAT control with SOTAMAT, by AB6D
; Define common items for all environments
[env]
platform = espressif32 @ 6.6.0
framework = espidf
monitor_speed = 115200
monitor_raw = yes
build_flags =
-DAPP_VERSION=1.0.0
-DAPP_NAME="SOTACAT"
-DAPP_DESCRIPTION="CAT control with SOTAMAT"
board_build.partitions = partition_definitions/partitions_singleapp_large.csv
; Rather than use a SPIFFS file system, we embed the web files into the binary directly.
; In the future we may update the app to use a file system such as LittleFS or SPIFFS.
board_build.embed_txtfiles =
src/web/index.html
src/web/style.css
src/web/main.js
src/web/sclogo.png
src/web/favicon.ico
src/web/sota.html
src/web/sota.js
src/web/pota.html
src/web/pota.js
src/web/settings.html
src/web/settings.js
src/web/cat.html
src/web/cat.js
src/web/about.html
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; Now define specific environments
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; Seeed Xiao ESP32-C3 - Single Core, RISC-V, 160MHz, 4MB Flash, 320KB SRAM
; ------------------------------------------------------------------------------------------
[env:seeed_xiao_esp32c3_debug]
board = seeed_xiao_esp32c3
board_build.partitions = partition_definitions/partitions_seeed_xiao_esp32c3_ota.csv
extra_scripts = pre:pio-pre-build-script.py
; post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DSEEED_XIAO
-DDEBUG
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_VERBOSE
-DSC_BUILD_TYPE=\"D\"
-Og ; -Og is optimized for debugging
-g ; Generate debug info and include debug symbols in the binary
build_unflags = -Os
[env:seeed_xiao_esp32c3_release]
board = seeed_xiao_esp32c3
board_build.partitions = partition_definitions/partitions_seeed_xiao_esp32c3_ota.csv
extra_scripts = pre:pio-pre-build-script.py
post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DSEEED_XIAO
-DRELEASE
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_INFO
-DSC_BUILD_TYPE=\"R\"
-O3 ; Optimize: -Os optmiizes for size, while -O3 optimizes for speed
; ------------------------------------------------------------------------------------------
; Wemos LOLIN32 Line - ESP32-LX6, Dual Core, Xtensa, 160MHz or 240MHz, 4MB Flash, 3520KB SRAM
; ------------------------------------------------------------------------------------------
[env:lolin32_lite_debug]
board = lolin32_lite
extra_scripts = pre:pio-pre-build-script.py
; post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DLOLIN32_LITE
-DDEBUG
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_VERBOSE
-DSC_BUILD_TYPE=\"D\"
-Og ; -Og is optimized for debugging
-g ; Generate debug info and include debug symbols in the binary
build_unflags = -Os
[env:lolin32_lite_release]
board = lolin32_lite
extra_scripts = pre:pio-pre-build-script.py
post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DLOLIN32_LITE
-DRELEASE
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_INFO
-DSC_BUILD_TYPE=\"R\"
-O3 ; Optimize: -Os optmiizes for size, while -O3 optimizes for speed
; ------------------------------------------------------------------------------------------
; Unexpected Maker TinyPico - ESP32-PICO-D4, Dual Core, Xtensa, 240MHz, 4MB Flash, 4MB PSRAM
; ------------------------------------------------------------------------------------------
[env:um_tinys3_debug]
board = um_tinys3
extra_scripts = pre:pio-pre-build-script.py
; post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DUM_TINYS3
-DDEBUG
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_VERBOSE
-DSC_BUILD_TYPE=\"D\"
-Og ; -Og is optimized for debugging
-g ; Generate debug info and include debug symbols in the binary
build_unflags = -Os
[env:um_tinys3_release]
board = um_tinys3
extra_scripts = pre:pio-pre-build-script.py
post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DUM_TINYS3
-DRELEASE
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_INFO
-DSC_BUILD_TYPE=\"R\"
-O3 ; Optimize: -Os optmiizes for size, while -O3 optimizes for speed
; ------------------------------------------------------------------------------------------
; Heltec WiFi kit 32 V3 - ESP32-S3FN, Dual Core, Xtensa, 240MHz, 8MB Flash, 512KB SRAM
; ------------------------------------------------------------------------------------------
[env:heltec_wifi_kit_32_V3_debug]
board = heltec_wifi_kit_32_V3
extra_scripts = pre:pio-pre-build-script.py
; post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DHELTEC_WIFI_V3
-DDEBUG
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_VERBOSE
-DSC_BUILD_TYPE=\"D\"
-Og ; -Og is optimized for debugging
-g ; Generate debug info and include debug symbols in the binary
build_unflags = -Os
[env:heltec_wifi_kit_32_V3_release]
board = heltec_wifi_kit_32_V3
extra_scripts = pre:pio-pre-build-script.py
post:pio-post-build-script.py
build_flags =
${env.build_flags}
-DHELTEC_WIFI_V3
-DRELEASE
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_INFO
-DSC_BUILD_TYPE=\"R\"
-O3 ; Optimize: -Os optmiizes for size, while -O3 optimizes for speed