Change flash size to 8MB

This enables flash memory for building Bluetooth Proxy (requires by #9), however, there are two downsides:
- The system is crashing when BLE is enabled and requires more investigation.
- User's cannot change flash size via OTA, so a serial flash will be required.
This commit is contained in:
Edward Firmo
2024-05-29 22:11:05 +02:00
parent 07c200fb19
commit a5da9c797a
2 changed files with 91 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ substitutions:
latitude: '0'
longitude: '0'
zone_home: 'zone.home'
default_transition_length: 500ms
version: '0.0.1'
@@ -90,8 +91,6 @@ binary_sensor:
internal: true
platform: template
# bluetooth_proxy:
button:
- id: bt_restart
name: Restart
@@ -113,6 +112,7 @@ debug:
esp32:
board: esp32dev
flash_size: 8MB
framework:
# type: esp-idf
type: arduino
@@ -133,8 +133,8 @@ esphome:
friendly_name: ${friendly_name}
platformio_options:
build_flags:
- -DCONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=true
# - -DCONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=true
- -DCONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST
- -DCONFIG_BT_BLE_DYNAMIC_ENV_MEMORY
- -DCONFIG_ESP32_REV_MIN_3
- -DCONFIG_MBEDTLS_DYNAMIC_BUFFER
- -DCONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT
@@ -144,8 +144,6 @@ esphome:
- -DCONFIG_SPIRAM_RODATA
- -DCONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP
- -DCONFIG_SPIRAM_USE
# - -DCONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL
- -DCONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
- -DCONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY
- -DCONFIG_SPIRAM_CACHE_LIBCHAR_IN_IRAM
- -DCONFIG_SPIRAM_CACHE_LIBENV_IN_IRAM
@@ -308,6 +306,7 @@ light:
name: Light
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 0
@@ -357,6 +356,7 @@ light:
name: Light
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 0
@@ -408,6 +408,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 6
@@ -459,6 +460,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 13
@@ -510,6 +512,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 27
@@ -565,6 +568,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 20
@@ -616,6 +620,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 10
@@ -667,6 +672,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 15
@@ -718,6 +724,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 31
@@ -773,6 +780,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 25
@@ -824,6 +832,7 @@ light:
name: Light - LED 00
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 0
@@ -832,6 +841,7 @@ light:
name: Light - LED 01
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 1
@@ -840,6 +850,7 @@ light:
name: Light - LED 02
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 2
@@ -848,6 +859,7 @@ light:
name: Light - LED 03
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 3
@@ -856,6 +868,7 @@ light:
name: Light - LED 04
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 4
@@ -864,6 +877,7 @@ light:
name: Light - LED 05
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 5
@@ -872,6 +886,7 @@ light:
name: Light - LED 06
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 6
@@ -880,6 +895,7 @@ light:
name: Light - LED 07
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 7
@@ -888,6 +904,7 @@ light:
name: Light - LED 08
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 8
@@ -896,6 +913,7 @@ light:
name: Light - LED 09
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 9
@@ -904,6 +922,7 @@ light:
name: Light - LED 10
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 10
@@ -912,6 +931,7 @@ light:
name: Light - LED 11
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 11
@@ -920,6 +940,7 @@ light:
name: Light - LED 12
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 12
@@ -928,6 +949,7 @@ light:
name: Light - LED 13
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 13
@@ -936,6 +958,7 @@ light:
name: Light - LED 14
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 14
@@ -944,6 +967,7 @@ light:
name: Light - LED 15
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 15
@@ -952,6 +976,7 @@ light:
name: Light - LED 16
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 16
@@ -960,6 +985,7 @@ light:
name: Light - LED 17
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 17
@@ -968,6 +994,7 @@ light:
name: Light - LED 18
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 18
@@ -976,6 +1003,7 @@ light:
name: Light - LED 19
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 19
@@ -984,6 +1012,7 @@ light:
name: Light - LED 20
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 20
@@ -992,6 +1021,7 @@ light:
name: Light - LED 21
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 21
@@ -1000,6 +1030,7 @@ light:
name: Light - LED 22
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 22
@@ -1008,6 +1039,7 @@ light:
name: Light - LED 23
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 23
@@ -1016,6 +1048,7 @@ light:
name: Light - LED 24
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 24
@@ -1024,6 +1057,7 @@ light:
name: Light - LED 25
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 25
@@ -1032,6 +1066,7 @@ light:
name: Light - LED 26
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 26
@@ -1040,6 +1075,7 @@ light:
name: Light - LED 27
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 27
@@ -1049,6 +1085,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 28
@@ -1058,6 +1095,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 29
@@ -1067,6 +1105,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 30
@@ -1076,6 +1115,7 @@ light:
internal: true
disabled_by_default: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 31
@@ -1085,6 +1125,7 @@ light:
name: Light - Relay 1 of 1 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 9
@@ -1093,6 +1134,7 @@ light:
name: Light - Relay 1 of 1 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 23
@@ -1101,6 +1143,7 @@ light:
name: Light - Relay 1 of 2 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 11
@@ -1109,6 +1152,7 @@ light:
name: Light - Relay 1 of 2 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 21
@@ -1117,6 +1161,7 @@ light:
name: Light - Relay 2 of 2 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 7
@@ -1125,6 +1170,7 @@ light:
name: Light - Relay 2 of 2 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 25
@@ -1133,6 +1179,7 @@ light:
name: Light - Relay 1 of 3 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 11
@@ -1141,6 +1188,7 @@ light:
name: Light - Relay 1 of 3 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 21
@@ -1149,6 +1197,7 @@ light:
name: Light - Relay 2 of 3 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 9
@@ -1157,6 +1206,7 @@ light:
name: Light - Relay 2 of 3 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 23
@@ -1165,6 +1215,7 @@ light:
name: Light - Relay 3 of 3 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 7
@@ -1173,6 +1224,7 @@ light:
name: Light - Relay 3 of 3 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 25
@@ -1181,6 +1233,7 @@ light:
name: Light - Relay 1 of 4 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 12
@@ -1189,6 +1242,7 @@ light:
name: Light - Relay 1 of 4 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 20
@@ -1197,6 +1251,7 @@ light:
name: Light - Relay 2 of 4 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 10
@@ -1205,6 +1260,7 @@ light:
name: Light - Relay 2 of 4 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 22
@@ -1213,6 +1269,7 @@ light:
name: Light - Relay 3 of 4 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 8
@@ -1221,6 +1278,7 @@ light:
name: Light - Relay 3 of 4 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 24
@@ -1229,6 +1287,7 @@ light:
name: Light - Relay 4 of 4 (bottom)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 6
@@ -1237,6 +1296,7 @@ light:
name: Light - Relay 4 of 4 (top)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 26
@@ -1245,6 +1305,7 @@ light:
name: Light - Relay 1 of 1 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 15
@@ -1253,6 +1314,7 @@ light:
name: Light - Relay 1 of 1 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 31
@@ -1264,6 +1326,7 @@ light:
name: Light - Relay 1 of 2 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 20
@@ -1272,6 +1335,7 @@ light:
name: Light - Relay 1 of 2 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 31
@@ -1283,6 +1347,7 @@ light:
name: Light - Relay 2 of 2 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 15
@@ -1291,6 +1356,7 @@ light:
name: Light - Relay 2 of 2 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 4
@@ -1299,6 +1365,7 @@ light:
name: Light - Relay 1 of 3 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 22
@@ -1307,6 +1374,7 @@ light:
name: Light - Relay 1 of 3 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 0
@@ -1315,6 +1383,7 @@ light:
name: Light - Relay 2 of 3 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 19
@@ -1323,6 +1392,7 @@ light:
name: Light - Relay 2 of 3 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 3
@@ -1331,6 +1401,7 @@ light:
name: Light - Relay 3 of 3 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 17
@@ -1339,6 +1410,7 @@ light:
name: Light - Relay 3 of 3 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 6
@@ -1347,6 +1419,7 @@ light:
name: Light - Relay 1 of 4 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 12
@@ -1355,6 +1428,7 @@ light:
name: Light - Relay 1 of 4 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 31
@@ -1363,6 +1437,7 @@ light:
name: Light - Relay 2 of 4 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 24
@@ -1371,6 +1446,7 @@ light:
name: Light - Relay 2 of 4 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 2
@@ -1379,6 +1455,7 @@ light:
name: Light - Relay 3 of 4 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 21
@@ -1387,6 +1464,7 @@ light:
name: Light - Relay 3 of 4 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 4
@@ -1395,6 +1473,7 @@ light:
name: Light - Relay 4 of 4 (left)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 19
@@ -1403,6 +1482,7 @@ light:
name: Light - Relay 4 of 4 (right)
internal: true
platform: partition
default_transition_length: ${default_transition_length}
segments:
- id: light_full
from: 7

View File

@@ -10,6 +10,10 @@ packages:
remote_package:
url: https://github.com/edwardtfn/TX-Ultimate-Easy
ref: dev
refresh: 30s
refresh: 1h
files:
- ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml
### Uncomment the lines bellow if you have issues with OTA and cannot flash via serial at this moment. ###
#esp32:
# flash_size: 4MB