-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathplatformio.ini
More file actions
169 lines (161 loc) · 5.19 KB
/
Copy pathplatformio.ini
File metadata and controls
169 lines (161 loc) · 5.19 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
; 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/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/zigbee
espressif/rmaker_common
espressif/lan867x
build_flags =
!python git_tag_macro.py
!python build_date_macro.py
!python cert_updater.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++17
lib_deps =
;https://github.com/h2zero/esp-nimble-cpp/
https://github.com/doudar/esp-nimble-cpp/
https://github.com/teemuatlut/TMCStepper/archive/refs/tags/v0.7.3.zip
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
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
lib_deps =
ArduinoFake
lib/ArduinoCompat
lib/SS2K
build_flags =
-Wunused
-Wunused-function
-Wunused-variable
-Wunreachable-code
-std=c++11
-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