mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
* Delete sdkconfig - Kopie.defaults * Delete sdkconfig.esp32cam-testing * Delete sdkconfig - Kopie.esp32cam * Update platformio.ini
131 lines
3.8 KiB
INI
131 lines
3.8 KiB
INI
; 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 = main
|
|
default_envs = esp32cam
|
|
|
|
[common:idf]
|
|
build_flags =
|
|
-DUSE_ESP_IDF
|
|
lib_deps =
|
|
|
|
[common:arduino]
|
|
extends = common
|
|
lib_deps =
|
|
build_flags =
|
|
${common.build_flags}
|
|
-DUSE_ARDUINO
|
|
|
|
[common:esp32-idf]
|
|
extends = common:idf
|
|
platform = platformio/espressif32 @ 5.2.0
|
|
framework = espidf
|
|
lib_deps =
|
|
${common:idf.lib_deps}
|
|
build_flags =
|
|
${common:idf.build_flags}
|
|
-Wno-nonnull-compare
|
|
-DUSE_ESP32
|
|
-DUSE_ESP32_FRAMEWORK_ESP_IDF
|
|
|
|
|
|
[flags:runtime]
|
|
build_flags =
|
|
-Wno-nonnull-compare
|
|
-Wno-sign-compare
|
|
-Wno-unused-but-set-variable
|
|
-Wno-unused-variable
|
|
-fno-exceptions
|
|
|
|
[flags:clangtidy]
|
|
build_flags =
|
|
-Wall
|
|
-Wextra
|
|
-Wunreachable-code
|
|
-Wshadow-compatible-local
|
|
-fno-exceptions
|
|
|
|
[env:esp32cam]
|
|
extends = common:esp32-idf
|
|
board = esp32cam
|
|
framework = espidf
|
|
build_flags =
|
|
;Add macro definition ENABLE_MQTT, ENABLE_INFLUXDB, DEBUG_DETAIL_ON
|
|
;if ENABLE_SOFTAP = disabled, set CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n in sdkconfig.defaults to save 28k of flash
|
|
-D ENABLE_MQTT -D ENABLE_INFLUXDB -D ENABLE_SOFTAP
|
|
${common:esp32-idf.build_flags}
|
|
${flags:runtime.build_flags}
|
|
board_build.partitions = partitions.csv
|
|
monitor_speed = 115200
|
|
monitor_rts = 0
|
|
monitor_dtr = 0
|
|
|
|
|
|
[env:esp32cam-dev]
|
|
extends = common:esp32-idf
|
|
board = node32s
|
|
board_build.flash_mode = qio
|
|
build_flags =
|
|
; ### common imported :
|
|
${common:esp32-idf.build_flags}
|
|
${flags:clangtidy.build_flags}
|
|
; ### Sofware options :
|
|
-D ENABLE_MQTT
|
|
-D ENABLE_INFLUXDB
|
|
;-D ENABLE_SOFTAP
|
|
;### test options
|
|
-D CONFIG_ESP_TASK_WDT
|
|
;-D CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL
|
|
-D CONFIG_SPIRAM
|
|
-D CONFIG_ESP_TASK_WDT_TIMEOUT_S ; fix for CONFIG_ESP_INT_WDT_TIMEOUT_MS
|
|
; ### Debug options :
|
|
-D DEBUG_DETAIL_ON
|
|
;-D DEBUG_DISABLE_BROWNOUT_DETECTOR
|
|
-D DEBUG_ENABLE_SYSINFO
|
|
-D DEBUG_ENABLE_PERFMON
|
|
;Task analysis
|
|
-D TASK_ANALYSIS_ON
|
|
-D CONFIG_FREERTOS_USE_TRACE_FACILITY
|
|
-D CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS
|
|
-D CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID
|
|
;#### enable support for 8Mb SPIRAM_ ; testing : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/himem.html
|
|
-DBOARD_HAS_PSRAM
|
|
-mfix-esp32-psram-cache-issue
|
|
-D CONFIG_SPIRAM_TYPE_AUTO
|
|
-D CONFIG_SPIRAM_USE_CAPS_ALLOC
|
|
-D CONFIG_SPIRAM_USE_MALLOC
|
|
;-D CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
|
|
-D CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
|
|
;-D CONFIG_SPIRAM_BANKSWITCH_RESERVE=4
|
|
framework = espidf
|
|
lib_ldf_mode = deep+
|
|
platform = platformio/espressif32 @ 5.2.0
|
|
platform_packages =
|
|
;platformio/framework-espidf @ 3.40402.0 (4.4.2)
|
|
;platformio/framework-espidf@^3.50000.0
|
|
;platformio/tool-cmake @ 3.16.4
|
|
;platformio/tool-cmake@^3.21.3
|
|
;platformio/tool-esptoolpy @ 1.40201.0 (4.2.1)
|
|
platformio/tool-esptoolpy@^1.40400.0
|
|
;platformio/tool-idf @ 1.0.1
|
|
;platformio/tool-mconf @ 1.4060000.20190628 (406.0.0)
|
|
;platformio/tool-ninja @ 1.9.0
|
|
;platformio/tool-ninja @ 1.10.2
|
|
;platformio/toolchain-esp32ulp @ 1.22851.191205 (2.28.51)
|
|
espressif/toolchain-esp32ulp @ 2.35.0-20220830
|
|
;platformio/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
|
|
;platformio/toolchain-xtensa-esp32 @ 11.2.0+2022r1
|
|
|
|
board_build.partitions = partitions.csv
|
|
monitor_speed = 115200
|
|
monitor_rts = 0
|
|
monitor_dtr = 0
|