-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathplatformio.ini
More file actions
180 lines (172 loc) · 5.54 KB
/
Copy pathplatformio.ini
File metadata and controls
180 lines (172 loc) · 5.54 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
; 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 = release
[common]
lib_ldf_mode = chain
lib_compat_mode = strict
extra_scripts =
pre:scripts/windows_ldgen.py
pre:scripts/pre_build_cleanup.py
pre:scripts/prepare_filesystem.py
pre:scripts/name_build_artifacts.py
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.311/platform-espressif32.zip
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10/platform-espressif32.zip
;platform = espressif32
;platform_packages =
; framework-espidf @ https://github.com/espressif/esp-idf/releases/download/v5.3.2/esp-idf-v5.3.2.zip
framework = arduino, espidf
board_build.filesystem = littlefs
upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.embed_txtfiles =
;managed_components/espressif__esp_insights/server_certs/https_server.crt
;managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
;managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
;managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt
custom_component_remove =
espressif/esp_hosted
espressif/esp_wifi_remote
espressif/esp-dsp
espressif/esp32-camera
espressif/libsodium
espressif/esp-modbus
espressif/qrcode
espressif/esp_insights
espressif/esp_diag_data_store
espressif/esp_diagnostics
espressif/esp_rainmaker
espressif/esp-zigbee-lib
espressif/esp-zboss-lib
espressif/rmaker_common
espressif/lan867x
espressif/esp-sr
espressif/esp-dl
espressif/dl_fft
espressif/esp_new_jpeg
chmorgan/esp-libhelix-mp3
espressif/esp_modem
espressif/cbor
espressif/network_provisioning
build_flags =
!python3 git_tag_macro.py
!python3 build_date_macro.py
;-DCONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
;-D CONFIG_SPI_SLAVE_ISR_IN_IRAM=n
;-D CONFIG_NEWLIB_NANO_FORMAT=y
;-D CONFIG_LWIP_IRAM_OPTIMIZATION=y
;-D CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM=y
;-D CONFIG_NIMBLE_MAX_CONNECTIONS=7
;-D CONFIG_BT_NIMBLE_WHITELIST_SIZE=0
;-D CONFIG_MDNS_STRICT_MODE=1
;-D CORE_DEBUG_LEVEL=1
-D ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE=3500
;-D CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE=8000
;-D CONFIG_BT_NIMBLE_MAX_CCCDS=0
;-D CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS=1
;-D CONFIG_NIMBLE_STACK_USE_MEM_POOLS=1
;-D CONFIG_BT_NIMBLE_MAX_BONDS=1
;-D CONFIG_BT_NIMBLE_BLOCK_COUNT=20
-std=gnu++23
lib_deps =
;https://github.com/h2zero/esp-nimble-cpp/
https://github.com/doudar/esp-nimble-cpp/
https://github.com/doudar/TMCStepper.git#5cc0b3f1618a54e689660c50e67229c990ab309c
https://github.com/bblanchon/ArduinoJson/archive/refs/tags/v7.3.1.zip
;https://github.com/gin66/FastAccelStepper/archive/refs/tags/0.31.2.zip
https://github.com/doudar/FastAccelStepper/
;https://github.com/gilmaimon/ArduinoWebsockets/archive/refs/tags/0.5.4.zip
https://github.com/doudar/ArduinoWebsockets/
;https://github.com/Links2004/arduinoWebSockets
;https://github.com/h2zero/NimBLE-Arduino/
[board_esp32]
board = esp32doit-devkit-v1
board_build.partitions = min_spiffs.csv
debug_tool = esp-prog
debug_init_break = tbreak setup
[board_esp32s3]
board = esp32-s3-devkitc-1
board_build.partitions = partitions_esp32s3_16mb.csv
board_upload.flash_size = 16MB
board_build.arduino.memory_type = qio_qspi
upload_protocol = esptool
build_flags =
-D SMARTSPIN2K_S3=1
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=1
[env:release]
extends = common, board_esp32
build_flags = ${common.build_flags}
-D CORE_DEBUG_LEVEL=0
[env:debug]
extends = common, board_esp32
build_type = debug
build_flags = ${common.build_flags} -D__DEBUG__=1
check_tool = cppcheck
check_flags =
--enable=all
--suppress=*:*/.pio/*
--suppress=*:*/lib/NimBLE-Arduino/*
--suppress=unmatchedSuppression
--suppress=missingIncludeSystem
check_severity = medium, high
check_skip_packages = true
[env:S3release]
extends = common, board_esp32s3
build_flags =
${common.build_flags}
${board_esp32s3.build_flags}
-D CORE_DEBUG_LEVEL=0
[env:S3debug]
extends = common, board_esp32s3
build_type = debug
build_flags =
${common.build_flags}
${board_esp32s3.build_flags}
-D__DEBUG__=1
-D SERIAL_CUSTOM_CHARACTERISTIC
debug_tool = esp-builtin
debug_init_break = tbreak setup
check_tool = cppcheck
check_flags =
--enable=all
--suppress=*:*/.pio/*
--suppress=*:*/lib/NimBLE-Arduino/*
--suppress=unmatchedSuppression
--suppress=missingIncludeSystem
check_severity = medium, high
check_skip_packages = true
[env:native]
platform = native
extra_scripts = post:scripts/erg_sim/native_hook.py
lib_deps =
lib/ArduinoCompat
lib/SS2K
throwtheswitch/Unity @ ^2.6.1
build_flags =
-Wunused
-Wunused-function
-Wunused-variable
-Wunreachable-code
-std=gnu++23
-D PLATFORMIO_ENV_NATIVE
-I include
lib_ldf_mode = chain+
lib_compat_mode = soft
check_tool = cppcheck
check_flags =
--enable=all
--suppress=*:*/.pio/*P
--suppress=unmatchedSuppression
--suppress=missingIncludeSystem
check_severity = medium, high
check_skip_packages = true