2023-11-14 15:36:09 +00:00
|
|
|
[tasmota]
|
|
|
|
; Reset global build / unbuild compile time flags for ALL Tasmota / Tasmota32 [env]
|
|
|
|
; since custom env are designed to enable options individual
|
|
|
|
build_unflags =
|
|
|
|
build_flags =
|
|
|
|
|
2021-11-02 16:22:04 +00:00
|
|
|
[env:tasmota-rangeextender]
|
|
|
|
build_flags = ${env.build_flags}
|
2023-02-20 14:21:24 +00:00
|
|
|
-DFIRMWARE_RANGE_EXTENDER
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
|
|
|
-DUSE_WIFI_RANGE_EXTENDER
|
|
|
|
-DUSE_WIFI_RANGE_EXTENDER_NAPT
|
|
|
|
-DOTA_URL='""'
|
2021-11-02 16:22:04 +00:00
|
|
|
|
|
|
|
[env:tasmota32-rangeextender]
|
2021-11-10 11:24:39 +00:00
|
|
|
extends = env:tasmota32_base
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2023-02-20 14:21:24 +00:00
|
|
|
-DFIRMWARE_TASMOTA32
|
|
|
|
-DUSE_WIFI_RANGE_EXTENDER
|
|
|
|
-DUSE_WIFI_RANGE_EXTENDER_NAPT
|
|
|
|
-DOTA_URL='""'
|
2021-11-02 16:22:04 +00:00
|
|
|
|
2024-04-25 19:19:20 +01:00
|
|
|
; remove PSRAM support -> avoid "blinking" of GPIO 16/17 at boot
|
|
|
|
[env:tasmota32-nopsram]
|
|
|
|
extends = env:tasmota32
|
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
-DBOARD_HAS_PSRAM
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DFIRMWARE_TASMOTA32
|
|
|
|
-DDISABLE_PSRAMCHECK
|
|
|
|
-DCODE_IMAGE_STR='"tasmota32-nopsram"'
|
|
|
|
-DOTA_URL='""'
|
|
|
|
|
2022-05-21 13:01:30 +01:00
|
|
|
[env:tasmota32s3-file]
|
2022-05-12 10:02:10 +01:00
|
|
|
extends = env:tasmota32_base
|
2022-10-17 15:04:11 +01:00
|
|
|
board = esp32s3-qio_qspi
|
|
|
|
board_build.f_cpu = 240000000L
|
|
|
|
board_build.f_flash = 80000000L
|
2023-02-20 14:21:24 +00:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DFIRMWARE_TASMOTA32
|
|
|
|
-DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32s3.bin"'
|
2022-10-17 15:04:11 +01:00
|
|
|
; Example for custom file upload in Tasmota Filesystem
|
|
|
|
custom_files_upload = ${env:tasmota32_base.custom_files_upload}
|
2022-12-19 16:58:32 +00:00
|
|
|
tasmota/berry/modules/Partition_Wizard.tapp
|
2022-10-17 15:04:11 +01:00
|
|
|
https://github.com/tasmota/autoconf/raw/main/esp32s3/DevKitC-1.autoconf
|
|
|
|
|
|
|
|
[env:tasmota32s3-qio_opi-all]
|
2023-02-20 14:21:24 +00:00
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32s3-qio_opi
|
|
|
|
board_build.f_cpu = 240000000L
|
|
|
|
board_build.f_flash = 80000000L
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DUSE_WEBCAM
|
|
|
|
-DUSE_BERRY_ULP
|
|
|
|
-DFIRMWARE_LVGL
|
|
|
|
-DUSE_LVGL_OPENHASP
|
|
|
|
-DOTA_URL='""'
|
2022-10-17 15:04:11 +01:00
|
|
|
|
2024-04-21 22:07:01 +01:00
|
|
|
[env:tasmota32s3-qio_opi_120]
|
2024-04-21 22:07:51 +01:00
|
|
|
; device needs >= 8MB Flash!!
|
2024-04-21 22:07:01 +01:00
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32s3-qio_opi_120
|
|
|
|
board_build.partitions = partitions/esp32_partition_app3904k_fs3392k.csv
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DUSE_BERRY_ULP
|
|
|
|
-DFIRMWARE_LVGL
|
|
|
|
-DUSE_LVGL_OPENHASP
|
|
|
|
-DOTA_URL='""'
|
|
|
|
|
2023-10-31 12:18:19 +00:00
|
|
|
[env:tasmota32s3-opi_opi]
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32s3-opi_opi
|
|
|
|
board_build.f_cpu = 240000000L
|
|
|
|
board_build.f_flash = 80000000L
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DUSE_BERRY_ULP
|
|
|
|
-DFIRMWARE_LVGL
|
|
|
|
-DUSE_LVGL_OPENHASP
|
|
|
|
-DOTA_URL='""'
|
2024-04-21 22:07:01 +01:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32c3-bluetooth]
|
2023-10-31 12:18:19 +00:00
|
|
|
extends = env:tasmota32_base
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32c3
|
2024-04-17 10:28:04 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DFIRMWARE_BLUETOOTH
|
2023-02-20 14:21:24 +00:00
|
|
|
; -DUSE_EQ3_ESP32
|
|
|
|
-DOTA_URL='""'
|
2022-06-11 08:20:10 +01:00
|
|
|
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display, lib/lib_audio
|
2024-04-17 10:28:04 +01:00
|
|
|
lib_ignore = Micro-RTSP
|
2022-06-11 08:20:10 +01:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32s3-bluetooth]
|
2022-06-11 08:20:10 +01:00
|
|
|
extends = env:tasmota32_base
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32s3-qio_qspi
|
2023-02-20 14:21:24 +00:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DFIRMWARE_BLUETOOTH
|
|
|
|
-DOTA_URL='""'
|
2022-06-11 08:20:10 +01:00
|
|
|
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_ssl, lib/lib_i2c
|
2024-04-17 10:28:04 +01:00
|
|
|
lib_ignore = Micro-RTSP
|
2022-06-11 08:20:10 +01:00
|
|
|
|
2023-11-02 11:03:14 +00:00
|
|
|
[env:tasmota32-mi32]
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2023-12-01 13:59:59 +00:00
|
|
|
-DFIRMWARE_BLUETOOTH
|
2023-11-02 11:03:14 +00:00
|
|
|
-DUSE_MI_EXT_GUI
|
|
|
|
-DOTA_URL='""'
|
|
|
|
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_ssl
|
2024-04-17 10:28:04 +01:00
|
|
|
lib_ignore = Micro-RTSP
|
2023-11-02 11:03:14 +00:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32c3-mi32]
|
2024-04-17 10:28:04 +01:00
|
|
|
extends = env:tasmota32_base
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32c3
|
2023-11-02 11:03:14 +00:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2023-12-01 13:59:59 +00:00
|
|
|
-DFIRMWARE_BLUETOOTH
|
2023-11-02 11:03:14 +00:00
|
|
|
-DUSE_MI_EXT_GUI
|
|
|
|
-DOTA_URL='""'
|
|
|
|
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_ssl
|
2024-04-17 10:28:04 +01:00
|
|
|
lib_ignore = Micro-RTSP
|
2023-11-02 11:03:14 +00:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32s3-mi32]
|
2024-04-17 10:28:04 +01:00
|
|
|
extends = env:tasmota32_base
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32s3-qio_qspi
|
2023-11-02 11:03:14 +00:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2023-12-01 13:59:59 +00:00
|
|
|
-DFIRMWARE_BLUETOOTH
|
2023-11-02 11:03:14 +00:00
|
|
|
-DUSE_MI_EXT_GUI
|
|
|
|
-DOTA_URL='""'
|
|
|
|
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_ssl
|
2024-04-17 10:28:04 +01:00
|
|
|
lib_ignore = Micro-RTSP
|
2024-04-15 10:39:48 +01:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32c6-mi32]
|
2024-04-17 10:28:04 +01:00
|
|
|
extends = env:tasmota32_base
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32c6
|
2024-04-17 10:28:04 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DFIRMWARE_BLUETOOTH
|
|
|
|
-DUSE_MI_EXT_GUI
|
|
|
|
-DOTA_URL='""'
|
2023-11-02 11:03:14 +00:00
|
|
|
|
2021-04-24 18:59:44 +01:00
|
|
|
; *** Debug version used for PlatformIO Home Project Inspection
|
|
|
|
[env:tasmota-debug]
|
|
|
|
build_type = debug
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env.build_unflags}
|
2022-10-06 11:40:52 +01:00
|
|
|
check_tool = cppcheck
|
|
|
|
;clangtidy
|
|
|
|
check_skip_packages = yes
|
2021-08-03 21:42:26 +01:00
|
|
|
build_flags = ${env.build_flags}
|
2021-04-24 18:59:44 +01:00
|
|
|
; -Wstack-usage=300
|
2023-02-20 14:21:24 +00:00
|
|
|
-DOTA_URL='""'
|
2021-04-24 18:59:44 +01:00
|
|
|
|
|
|
|
[env:tasmota32-debug]
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
build_type = debug
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2023-02-20 14:21:24 +00:00
|
|
|
-DOTA_URL='""'
|
2022-10-06 11:40:52 +01:00
|
|
|
check_tool = cppcheck
|
|
|
|
;clangtidy
|
|
|
|
check_skip_packages = yes
|
2021-07-25 12:54:10 +01:00
|
|
|
|
2022-10-06 11:40:52 +01:00
|
|
|
|
2021-07-25 12:54:10 +01:00
|
|
|
; *** JTAG Debug version, needs esp-prog or FT2232H or FT232H
|
2021-09-17 10:04:03 +01:00
|
|
|
; *** Install howto for Windows https://community.platformio.org/t/esp32-pio-unified-debugger/4541/20
|
2022-10-06 11:40:52 +01:00
|
|
|
|
2021-07-25 12:54:10 +01:00
|
|
|
[env:tasmota32-ocd]
|
2023-02-20 14:21:24 +00:00
|
|
|
build_type = debug
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32
|
|
|
|
debug_tool = esp-prog
|
|
|
|
upload_protocol = esp-prog
|
|
|
|
debug_init_break = tbreak setup
|
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DOTA_URL='""'
|
2021-07-25 12:54:10 +01:00
|
|
|
|
|
|
|
[env:tasmota32solo1-ocd]
|
2023-02-20 14:21:24 +00:00
|
|
|
build_type = debug
|
|
|
|
extends = env:tasmota32solo1
|
|
|
|
board = esp32_solo1
|
|
|
|
debug_tool = esp-prog
|
|
|
|
upload_protocol = esp-prog
|
|
|
|
debug_init_break = tbreak setup
|
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DOTA_URL='""'
|
2022-10-06 11:40:52 +01:00
|
|
|
|
|
|
|
[env:tasmota32s2-ocd]
|
2023-02-20 14:21:24 +00:00
|
|
|
build_type = debug
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32s2
|
|
|
|
debug_tool = esp-prog
|
|
|
|
upload_protocol = esp-prog
|
|
|
|
debug_init_break = tbreak setup
|
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DOTA_URL='""'
|
2022-10-06 11:40:52 +01:00
|
|
|
|
|
|
|
; *** JTAG Debug versions (only C3/S3), uses inbuilt CDC/jtag. No extra jtag hardware required!
|
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32s3-ocd]
|
2023-02-20 14:21:24 +00:00
|
|
|
build_type = debug
|
|
|
|
extends = env:tasmota32s3
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32s3-qio_opi
|
2023-02-20 14:21:24 +00:00
|
|
|
debug_tool = esp-builtin
|
|
|
|
upload_protocol = esp-builtin
|
|
|
|
debug_init_break = tbreak setup
|
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-DOTA_URL='""'
|
2022-10-06 11:40:52 +01:00
|
|
|
|
2024-04-18 12:08:31 +01:00
|
|
|
[env:tasmota32c3-ocd]
|
2023-02-20 14:21:24 +00:00
|
|
|
build_type = debug
|
|
|
|
extends = env:tasmota32c3
|
2024-04-18 12:08:31 +01:00
|
|
|
board = esp32c3
|
2023-02-20 14:21:24 +00:00
|
|
|
debug_tool = esp-builtin
|
|
|
|
upload_protocol = esp-builtin
|
|
|
|
debug_init_break = tbreak setup
|
|
|
|
build_unflags = ${env:tasmota32c3.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32c3.build_flags}
|
|
|
|
-DOTA_URL='""'
|