2021-05-07 17:13:55 +01:00
|
|
|
[core]
|
|
|
|
; Activate (by removing the ";" in the next lines) if you want to override the standard core defined in platformio.ini !!!
|
2021-07-01 16:19:45 +01:00
|
|
|
;platform = ${core_dev.platform}
|
|
|
|
;platform_packages = ${core_dev.platform_packages}
|
|
|
|
;build_unflags = ${core_dev.build_unflags}
|
|
|
|
;build_flags = ${core_dev.build_flags}
|
2021-05-07 17:13:55 +01:00
|
|
|
|
2021-07-01 16:19:45 +01:00
|
|
|
[core_dev]
|
2021-08-03 13:42:02 +01:00
|
|
|
; *** Esp8266 core for Arduino 3.0.2
|
|
|
|
platform = https://github.com/platformio/platform-espressif8266.git
|
2021-07-18 22:14:10 +01:00
|
|
|
platform_packages =
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env.build_unflags}
|
2021-05-07 17:13:55 +01:00
|
|
|
-Wswitch-unreachable
|
2021-08-03 21:42:26 +01:00
|
|
|
build_flags = ${env.build_flags}
|
2021-05-23 15:08:15 +01:00
|
|
|
; *** 16k extra heap https://github.com/esp8266/Arduino/pull/7060
|
2021-06-01 19:48:21 +01:00
|
|
|
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED
|
2021-05-07 17:13:55 +01:00
|
|
|
-Wno-switch-unreachable
|
|
|
|
|
2021-08-17 14:51:45 +01:00
|
|
|
; Settings in [tasmota] do NOT affect firmware building
|
|
|
|
[tasmota]
|
|
|
|
; Uncomment next line if you do NOT want gzipped map file(s)
|
|
|
|
;disable_map_gz = 1
|
|
|
|
; Uncomment and specify a folder where to place the map file(s) (default set to folder build_output)
|
|
|
|
;map_dir = /tmp/map_files/
|
|
|
|
; Uncomment next line if you do NOT want additionally gzipped firmware file(s)
|
|
|
|
;disable_bin_gz = 1
|
|
|
|
; Uncomment and specify a folder where to place the firmware file(s) (default set to folder build_output)
|
|
|
|
;bin_dir = /tmp/bin_files/
|
|
|
|
|
2021-08-01 17:07:51 +01:00
|
|
|
[env:tasmota-rangeextender]
|
2021-08-03 21:42:26 +01:00
|
|
|
build_flags = ${env.build_flags}
|
2021-08-01 17:07:51 +01:00
|
|
|
-D FIRMWARE_RANGE_EXTENDER
|
|
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
2021-08-02 01:25:32 +01:00
|
|
|
-D USE_WIFI_RANGE_EXTENDER
|
2021-08-01 17:07:51 +01:00
|
|
|
-D USE_WIFI_RANGE_EXTENDER_NAPT
|
2021-05-07 17:13:55 +01:00
|
|
|
|
2021-07-01 16:19:45 +01:00
|
|
|
; *** Tasmota development core version ESP32 IDF3.3.5 / Currently none, same as default
|
2021-06-01 18:44:26 +01:00
|
|
|
[env:tasmota32idf3]
|
2021-06-09 19:39:04 +01:00
|
|
|
extends = env:tasmota32_base
|
2021-07-01 16:19:45 +01:00
|
|
|
platform = espressif32 @ 3.3.0
|
2021-07-25 18:15:45 +01:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.7.3/tasmota-arduinoespressif32-release_v3.3.5.tar.gz
|
2021-06-09 19:39:04 +01:00
|
|
|
platformio/tool-mklittlefs @ ~1.203.200522
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2021-06-09 19:39:04 +01:00
|
|
|
;-DESP32_STAGE=true
|
2021-06-01 18:44:26 +01:00
|
|
|
|
2021-05-07 17:13:55 +01:00
|
|
|
;*** EXPERIMENTAL Tasmota version for ESP32-S2
|
2021-04-24 18:59:44 +01:00
|
|
|
[env:tasmota32s2]
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32s2
|
2021-07-18 22:14:10 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
|
2021-08-22 14:52:00 +01:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/408/framework-arduinoespressif32-master-54caa4c74.tar.gz
|
2021-04-24 18:59:44 +01:00
|
|
|
platformio/tool-mklittlefs @ ~1.203.200522
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
2021-08-22 14:52:00 +01:00
|
|
|
-Wswitch-unreachable
|
|
|
|
-Wstringop-overflow
|
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
-Wno-switch-unreachable
|
|
|
|
-Wno-stringop-overflow
|
2021-04-24 18:59:44 +01:00
|
|
|
lib_extra_dirs = lib/libesp32
|
2021-08-22 14:52:00 +01:00
|
|
|
lib/libesp32_lvgl
|
2021-07-15 11:42:04 +01:00
|
|
|
lib/lib_basic
|
2021-08-22 14:52:00 +01:00
|
|
|
lib/lib_i2c
|
|
|
|
lib/lib_ssl
|
|
|
|
lib/lib_display
|
2021-04-24 18:59:44 +01:00
|
|
|
lib_ignore =
|
2021-08-22 14:52:00 +01:00
|
|
|
NimBLE-Arduino
|
|
|
|
TTGO TWatch Library
|
|
|
|
ESP32-HomeKit
|
|
|
|
Micro-RTSP
|
2021-04-24 18:59:44 +01:00
|
|
|
|
|
|
|
; *** EXPERIMENTAL Tasmota version for ESP32-C3
|
|
|
|
[env:tasmota32c3]
|
2021-06-09 19:36:57 +01:00
|
|
|
extends = env:tasmota32_base
|
|
|
|
board = esp32c3
|
2021-07-18 22:14:10 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
|
2021-08-22 14:52:00 +01:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/408/framework-arduinoespressif32-master-54caa4c74.tar.gz
|
2021-06-09 19:36:57 +01:00
|
|
|
platformio/tool-mklittlefs @ ~1.203.200522
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
2021-06-09 19:36:57 +01:00
|
|
|
-Wswitch-unreachable
|
|
|
|
-mtarget-align
|
2021-07-04 19:03:49 +01:00
|
|
|
-DNDEBUG
|
2021-08-03 21:42:26 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2021-06-09 19:36:57 +01:00
|
|
|
-Wno-switch-unreachable
|
2021-08-22 14:52:00 +01:00
|
|
|
; *** Comment next two lines to disable BLE
|
|
|
|
-DUSE_BLE_ESP32
|
|
|
|
-DUSE_MI_ESP32
|
2021-06-09 19:36:57 +01:00
|
|
|
;-DESP32_STAGE=true
|
2021-08-22 14:52:00 +01:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
|
|
|
pre:pio-tools/cxx_flags.py
|
2021-06-09 19:36:57 +01:00
|
|
|
lib_extra_dirs = lib/libesp32
|
2021-08-22 14:52:00 +01:00
|
|
|
lib/libesp32_div
|
2021-06-09 19:36:57 +01:00
|
|
|
lib/libesp32_lvgl
|
|
|
|
lib/lib_basic
|
|
|
|
lib/lib_i2c
|
|
|
|
lib/lib_ssl
|
|
|
|
lib/lib_display
|
2021-08-22 14:52:00 +01:00
|
|
|
lib_ignore =
|
|
|
|
TTGO TWatch Library
|
|
|
|
ESP32-HomeKit
|
2021-06-09 19:36:57 +01:00
|
|
|
Micro-RTSP
|
2021-04-24 18:59:44 +01:00
|
|
|
|
|
|
|
; *** EXPERIMENTAL Tasmota version for ESP32 IDF4.4.
|
|
|
|
[env:tasmota32idf4]
|
|
|
|
extends = env:tasmota32_base
|
2021-07-18 22:14:10 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
|
2021-08-22 14:52:00 +01:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/408/framework-arduinoespressif32-master-54caa4c74.tar.gz
|
2021-04-24 18:59:44 +01:00
|
|
|
platformio/tool-mklittlefs @ ~1.203.200522
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
2021-06-30 15:28:00 +01:00
|
|
|
-Wswitch-unreachable
|
|
|
|
-Wincompatible-pointer-types
|
2021-08-03 21:42:26 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
2021-06-30 15:28:00 +01:00
|
|
|
-Wno-switch-unreachable
|
2021-08-22 14:52:00 +01:00
|
|
|
; ***Uncomment next two lines to enable BLE
|
|
|
|
;-DUSE_BLE_ESP32
|
|
|
|
;-DUSE_MI_ESP32
|
2021-04-24 18:59:44 +01:00
|
|
|
;-DESP32_STAGE=true
|
2021-08-22 14:52:00 +01:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
|
|
|
pre:pio-tools/cxx_flags.py
|
|
|
|
lib_extra_dirs = lib/libesp32
|
|
|
|
lib/libesp32_div
|
|
|
|
lib/libesp32_lvgl
|
|
|
|
lib/lib_basic
|
|
|
|
lib/lib_i2c
|
|
|
|
lib/lib_ssl
|
|
|
|
lib/lib_display
|
2021-04-24 18:59:44 +01:00
|
|
|
|
2021-08-02 01:25:32 +01:00
|
|
|
[env:tasmota32-rangeextender]
|
|
|
|
extends = env:tasmota32idf4
|
2021-08-22 14:52:00 +01:00
|
|
|
build_flags = ${env:tasmota32idf4.build_flags}
|
2021-08-02 01:25:32 +01:00
|
|
|
-D FIRMWARE_TASMOTA32
|
|
|
|
-D USE_WIFI_RANGE_EXTENDER
|
|
|
|
-D USE_WIFI_RANGE_EXTENDER_NAPT
|
|
|
|
|
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}
|
|
|
|
build_flags = ${env.build_flags}
|
2021-04-24 18:59:44 +01:00
|
|
|
; -Wstack-usage=300
|
|
|
|
|
|
|
|
[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}
|
2021-04-24 18:59:44 +01:00
|
|
|
; -Wstack-usage=300
|
2021-07-25 12:54:10 +01:00
|
|
|
|
|
|
|
; *** JTAG Debug version, needs esp-prog or FT2232H or FT232H
|
|
|
|
[env:tasmota32-ocd]
|
|
|
|
;build_type = debug
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
debug_tool = esp-prog
|
|
|
|
upload_protocol = esp-prog
|
|
|
|
debug_init_break = tbreak setup
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
2021-07-25 12:54:10 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|
|
|
|
|
|
|
|
; *** JTAG Debug version, needs esp-prog or FT2232H or FT232H
|
|
|
|
[env:tasmota32solo1-ocd]
|
|
|
|
;build_type = debug
|
|
|
|
extends = env:tasmota32_base
|
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.7.3/tasmota-arduinoespressif32-solo1-release_v3.3.5.tar.gz
|
|
|
|
platformio/tool-esptoolpy @ ~1.30100
|
|
|
|
platformio/tool-mklittlefs @ ~1.203.200522
|
|
|
|
board = esp32_solo1_4M
|
|
|
|
debug_tool = esp-prog
|
|
|
|
upload_protocol = esp-prog
|
|
|
|
debug_init_break = tbreak setup
|
2021-08-03 21:42:26 +01:00
|
|
|
build_unflags = ${env:tasmota32_base.build_unflags}
|
2021-07-25 12:54:10 +01:00
|
|
|
build_flags = ${env:tasmota32_base.build_flags}
|