From 2ebddf8e81b13332117bf0451e97635f3003396a Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:15:31 +0100 Subject: [PATCH 1/4] add Hybrid compile examples --- platformio_tasmota_cenv_sample.ini | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index 9c0576147f77..aec8e406f876 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -67,6 +67,74 @@ build_flags = ${env:tasmota32_base.build_flags} -DUSE_LVGL_OPENHASP -DOTA_URL='""' +[env:tasmota32s3-qio_opi_per] +; device needs >= 8MB Flash!! Hybrid compile for max. performance when using Displays +extends = env:tasmota32_base +board = esp32s3-qio_opi_120 +board_build.partitions = partitions/esp32_partition_app3904k_fs3392k.csv +board_upload.flash_size = 8MB +board_upload.maximum_size = 8388608 +build_unflags = ${env:tasmota32_base.build_unflags} + -Os + -ffunction-sections +build_flags = ${env:tasmota32_base.build_flags} + -Ofast + -mtext-section-literals + -DUSE_BERRY_ULP + -DFIRMWARE_LVGL + -DUSE_LVGL_OPENHASP + -DOTA_URL='""' +custom_sdkconfig = '# CONFIG_COMPILER_OPTIMIZATION_SIZE is not set' + CONFIG_COMPILER_OPTIMIZATION_PERF=y + '# CONFIG_ESP_DEBUG_INCLUDE_OCD_STUB_BINS is not set' + '# CONFIG_LWIP_PPP_SUPPORT is not set' + '# SPI_FLASH_ENABLE_ENCRYPTED_READ_WRITE is not set' + CONFIG_SPIRAM_MODE_OCT=y + CONFIG_SPIRAM_SPEED_120M=y + CONFIG_SPIRAM_IGNORE_NOTFOUND=y + '# CONFIG_SPIRAM_MEMTEST is not set' + CONFIG_LCD_RGB_ISR_IRAM_SAFE=y + CONFIG_GDMA_CTRL_FUNC_IN_IRAM=y + CONFIG_I2S_ISR_IRAM_SAFE=y + CONFIG_GDMA_ISR_IRAM_SAFE=y + CONFIG_SPIRAM_XIP_FROM_PSRAM=y + CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y + CONFIG_SPIRAM_RODATA=y + CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y + CONFIG_ESP32S3_DATA_CACHE_64KB=y + CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y + +[env:tasmota32c2-no-NAPT] +; Hybrid compile: No IDF BT support, disabled PPP, Ethernet and NAPT +extends = env:tasmota32_base +board = esp32c2 +build_flags = ${env:tasmota32_base.build_flags} + -DFIRMWARE_TASMOTA32 + -DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32c2.bin"' +lib_ignore = ${env:tasmota32_base.lib_ignore} + Micro-RTSP +custom_sdkconfig = + '# CONFIG_BT_ENABLED is not set' + '# CONFIG_BT_NIMBLE_ENABLED is not set' + '# CONFIG_BT_CONTROLLER_ENABLED is not set' + CONFIG_BT_CONTROLLER_DISABLED=y + '# CONFIG_LWIP_IP_FORWARD is not set' + '# CONFIG_LWIP_IPV4_NAPT is not set' + '# CONFIG_LWIP_IPV4_NAPT_PORTMAP is not set' + '# CONFIG_ETH_ENABLED is not set' + '# CONFIG_ETH_USE_SPI_ETHERNET is not set' + '# CONFIG_ETH_TRANSMIT_MUTEX is not set' + '# CONFIG_ETH_SPI_ETHERNET_DM9051 is not set' + '# CONFIG_ETH_SPI_ETHERNET_W5500 is not set' + '# CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL is not set' + '# CONFIG_LWIP_PPP_SUPPORT is not set' +; disable not needed IDF managed components for Arduino libs compile +custom_component_remove = espressif/esp_hosted + espressif/esp_wifi_remote + espressif/esp_modem +; add IDF component from espressif registry for Arduino libs compile +custom_component_add = espressif/esp-dsp @ ^1.5.2 + [env:tasmota32s3-opi_opi] extends = env:tasmota32_base board = esp32s3-opi_opi From 509018818116186c83c43b634fda06453db33262 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:28:25 +0100 Subject: [PATCH 2/4] formatting --- platformio_tasmota_cenv_sample.ini | 52 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index aec8e406f876..73238743224e 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -106,34 +106,34 @@ custom_sdkconfig = '# CONFIG_COMPILER_OPTIMIZATION_SIZE is not set' [env:tasmota32c2-no-NAPT] ; Hybrid compile: No IDF BT support, disabled PPP, Ethernet and NAPT -extends = env:tasmota32_base -board = esp32c2 -build_flags = ${env:tasmota32_base.build_flags} - -DFIRMWARE_TASMOTA32 - -DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32c2.bin"' -lib_ignore = ${env:tasmota32_base.lib_ignore} - Micro-RTSP -custom_sdkconfig = - '# CONFIG_BT_ENABLED is not set' - '# CONFIG_BT_NIMBLE_ENABLED is not set' - '# CONFIG_BT_CONTROLLER_ENABLED is not set' - CONFIG_BT_CONTROLLER_DISABLED=y - '# CONFIG_LWIP_IP_FORWARD is not set' - '# CONFIG_LWIP_IPV4_NAPT is not set' - '# CONFIG_LWIP_IPV4_NAPT_PORTMAP is not set' - '# CONFIG_ETH_ENABLED is not set' - '# CONFIG_ETH_USE_SPI_ETHERNET is not set' - '# CONFIG_ETH_TRANSMIT_MUTEX is not set' - '# CONFIG_ETH_SPI_ETHERNET_DM9051 is not set' - '# CONFIG_ETH_SPI_ETHERNET_W5500 is not set' - '# CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL is not set' - '# CONFIG_LWIP_PPP_SUPPORT is not set' +extends = env:tasmota32_base +board = esp32c2 +build_flags = ${env:tasmota32_base.build_flags} + -DFIRMWARE_TASMOTA32 + -DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32c2.bin"' +lib_ignore = ${env:tasmota32_base.lib_ignore} + Micro-RTSP +custom_sdkconfig = + '# CONFIG_BT_ENABLED is not set' + '# CONFIG_BT_NIMBLE_ENABLED is not set' + '# CONFIG_BT_CONTROLLER_ENABLED is not set' + CONFIG_BT_CONTROLLER_DISABLED=y + '# CONFIG_LWIP_IP_FORWARD is not set' + '# CONFIG_LWIP_IPV4_NAPT is not set' + '# CONFIG_LWIP_IPV4_NAPT_PORTMAP is not set' + '# CONFIG_ETH_ENABLED is not set' + '# CONFIG_ETH_USE_SPI_ETHERNET is not set' + '# CONFIG_ETH_TRANSMIT_MUTEX is not set' + '# CONFIG_ETH_SPI_ETHERNET_DM9051 is not set' + '# CONFIG_ETH_SPI_ETHERNET_W5500 is not set' + '# CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL is not set' + '# CONFIG_LWIP_PPP_SUPPORT is not set' ; disable not needed IDF managed components for Arduino libs compile -custom_component_remove = espressif/esp_hosted - espressif/esp_wifi_remote - espressif/esp_modem +custom_component_remove = espressif/esp_hosted + espressif/esp_wifi_remote + espressif/esp_modem ; add IDF component from espressif registry for Arduino libs compile -custom_component_add = espressif/esp-dsp @ ^1.5.2 +custom_component_add = espressif/esp-dsp @ ^1.5.2 [env:tasmota32s3-opi_opi] extends = env:tasmota32_base From 8d1d008fccc59178cc95aabf0e85673ae68053a8 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:00:34 +0100 Subject: [PATCH 3/4] add example env for WPA Enterprise --- platformio_tasmota_cenv_sample.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index 73238743224e..e196286437b9 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -67,6 +67,16 @@ build_flags = ${env:tasmota32_base.build_flags} -DUSE_LVGL_OPENHASP -DOTA_URL='""' +[env:tasmota32-WPA3_SAE] +; Arduino libs with WiFi Enterprise support +extends = env:tasmota32_base +build_flags = ${env:tasmota32_base.build_flags} + -DFIRMWARE_TASMOTA32 + -DOTA_URL='""' +lib_ignore = Micro-RTSP +custom_sdkconfig = CONFIG_ESP_WIFI_ENABLE_WPA3_SAE=y + CONFIG_ESP_WIFI_ENABLE_WPA3_OWE_STA=y + [env:tasmota32s3-qio_opi_per] ; device needs >= 8MB Flash!! Hybrid compile for max. performance when using Displays extends = env:tasmota32_base From a2a99e36eed348bca85bc56339070da790c8423d Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:07:18 +0100 Subject: [PATCH 4/4] Update platformio_tasmota_cenv_sample.ini --- platformio_tasmota_cenv_sample.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index e196286437b9..ccc2017869d0 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -74,7 +74,8 @@ build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_TASMOTA32 -DOTA_URL='""' lib_ignore = Micro-RTSP -custom_sdkconfig = CONFIG_ESP_WIFI_ENABLE_WPA3_SAE=y +custom_sdkconfig = CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT=y + CONFIG_ESP_WIFI_ENABLE_WPA3_SAE=y CONFIG_ESP_WIFI_ENABLE_WPA3_OWE_STA=y [env:tasmota32s3-qio_opi_per]