mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
Compare commits
4
Commits
7b9430c0e5
...
a5dff6fb15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5dff6fb15 | ||
|
|
203fc5e26d | ||
|
|
697af24f47 | ||
|
|
17bbf207e4 |
No files matched your search
@@ -55,8 +55,8 @@ jobs:
|
||||
if: steps.changed.outputs.any_changed == 'true'
|
||||
run: |
|
||||
for f in ${{ steps.changed.outputs.all_changed_files }}; do
|
||||
# zephyr: needs the esphomeplatformzephyr fork, upstream doesn't know it yet
|
||||
if grep -q '^zephyr:' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi
|
||||
# Zephyr RTOS platforms need the esphomeplatformzephyr fork, upstream doesn't know them yet
|
||||
if grep -qE '^(nrf|stm32|nxp|renesas|silabs):' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi
|
||||
echo "Validating $f..."
|
||||
esphome config "$f"
|
||||
done
|
||||
@@ -0,0 +1,44 @@
|
||||
# Package: fireplace icon in the home page icon row (white while it burns, grey while not, dark grey unavailable).
|
||||
# Hidden outside the heating season: fire out and the boiler switch off.
|
||||
# defaults: entity (fire binary_sensor), boiler (switch that lets the boiler fire)
|
||||
defaults:
|
||||
entity: binary_sensor.heating_fireplace_fire
|
||||
boiler: switch.heating_enabled
|
||||
|
||||
lvgl:
|
||||
pages:
|
||||
- id: !extend page_home
|
||||
widgets:
|
||||
- obj:
|
||||
id: !extend home_icons
|
||||
widgets:
|
||||
- label:
|
||||
id: fireplace_icon
|
||||
text: "\U000F0E2F"
|
||||
text_font: icon_s
|
||||
text_color: 0x48484A
|
||||
|
||||
script:
|
||||
- id: fireplace_icon_update
|
||||
then:
|
||||
- lambda: |-
|
||||
const std::string &fire = id(fireplace_fire).state;
|
||||
const bool on = fire == "on";
|
||||
lv_label_set_text(id(fireplace_icon), on ? "\U000F0E2E" : "\U000F0E2F");
|
||||
lv_obj_set_style_text_color(id(fireplace_icon), lv_color_hex(on ? 0xFFFFFF : ha_unavailable(fire) ? 0x48484A : 0x8E8E93), 0);
|
||||
lv_obj_set_hidden(id(fireplace_icon), fire == "off" && id(fireplace_boiler).state == "off");
|
||||
|
||||
text_sensor:
|
||||
# text, not binary: a binary sensor drops "unavailable"
|
||||
- platform: homeassistant
|
||||
id: fireplace_fire
|
||||
entity_id: ${entity}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: fireplace_icon_update
|
||||
- platform: homeassistant
|
||||
id: fireplace_boiler
|
||||
entity_id: ${boiler}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: fireplace_icon_update
|
||||
@@ -48,7 +48,7 @@ psram:
|
||||
ignore_not_found: false
|
||||
|
||||
external_components:
|
||||
- source: github://ptaru/nspanel-terminal@v0.6.0
|
||||
- source: github://ptaru/nspanel-terminal@v0.7.0
|
||||
components: [nspanel_terminal]
|
||||
|
||||
wifi:
|
||||
@@ -238,59 +238,63 @@ font:
|
||||
size: 30
|
||||
bpp: 4
|
||||
glyphs:
|
||||
- "\U000F0594"
|
||||
- "\U000F0599"
|
||||
- "\U000F0595"
|
||||
- "\U000F0590"
|
||||
- "\U000F0591"
|
||||
- "\U000F0597"
|
||||
- "\U000F0596"
|
||||
- "\U000F0598"
|
||||
- "\U000F067F"
|
||||
- "\U000F0592"
|
||||
- "\U000F0593"
|
||||
- "\U000F067E"
|
||||
- "\U000F059D"
|
||||
- "\U000F059E"
|
||||
- "\U000F05D6"
|
||||
- "\U000F0141"
|
||||
- "\U000F0142"
|
||||
- "\U000F0374"
|
||||
- "\U000F0415"
|
||||
- "\U000F0438"
|
||||
- "\U000F0238"
|
||||
- "\U000F0140"
|
||||
- "\U000F1066"
|
||||
- "\U000F059C"
|
||||
- "\U000F024A"
|
||||
- "\U000F1510"
|
||||
- "\U000F1253"
|
||||
- "\U000F1108"
|
||||
- "\U000F1987"
|
||||
- "\U000F091D"
|
||||
- "\U000F0299"
|
||||
- "\U000F116A"
|
||||
- "\U000F1169"
|
||||
- "\U000F17F7"
|
||||
- "\U000F17F8"
|
||||
- "\U000F06A9"
|
||||
- "\U000F00DF"
|
||||
- "\U000F05A8"
|
||||
- "\U000F03D8"
|
||||
- "\U000F0425"
|
||||
- "\U000F0379"
|
||||
- "\U000F04B9"
|
||||
- "\U000F0502"
|
||||
- "\U000F0769"
|
||||
- "\U000F1051"
|
||||
- "\U000F1793"
|
||||
- "\U000F18DE"
|
||||
- "\U000F181C"
|
||||
- "\U000F04DE"
|
||||
- "\U000F06B5"
|
||||
- "\U000F07F4"
|
||||
- "\U000F0C6E"
|
||||
- "\U000F0DDC"
|
||||
- "\U000F0594" # mdi:weather-night
|
||||
- "\U000F0599" # mdi:weather-sunny
|
||||
- "\U000F0595" # mdi:weather-partly-cloudy
|
||||
- "\U000F0590" # mdi:weather-cloudy
|
||||
- "\U000F0591" # mdi:weather-fog
|
||||
- "\U000F0597" # mdi:weather-rainy
|
||||
- "\U000F0596" # mdi:weather-pouring
|
||||
- "\U000F0598" # mdi:weather-snowy
|
||||
- "\U000F067F" # mdi:weather-snowy-rainy
|
||||
- "\U000F0592" # mdi:weather-hail
|
||||
- "\U000F0593" # mdi:weather-lightning
|
||||
- "\U000F067E" # mdi:weather-lightning-rainy
|
||||
- "\U000F059D" # mdi:weather-windy
|
||||
- "\U000F059E" # mdi:weather-windy-variant
|
||||
- "\U000F05D6" # mdi:alert-circle-outline
|
||||
- "\U000F0141" # mdi:chevron-left
|
||||
- "\U000F0142" # mdi:chevron-right
|
||||
- "\U000F0374" # mdi:minus
|
||||
- "\U000F0415" # mdi:plus
|
||||
- "\U000F0438" # mdi:radiator
|
||||
- "\U000F0238" # mdi:fire
|
||||
- "\U000F0140" # mdi:chevron-down
|
||||
- "\U000F1066" # mdi:valve
|
||||
- "\U000F059C" # mdi:weather-sunset-up
|
||||
- "\U000F024A" # mdi:flower
|
||||
- "\U000F1510" # mdi:grass
|
||||
- "\U000F1253" # mdi:lightbulb-group
|
||||
- "\U000F1108" # mdi:power-socket-fr
|
||||
- "\U000F1987" # mdi:light-flood-down
|
||||
- "\U000F091D" # mdi:wall-sconce-flat
|
||||
- "\U000F0299" # mdi:gate
|
||||
- "\U000F116A" # mdi:gate-open
|
||||
- "\U000F1169" # mdi:gate-arrow-right
|
||||
- "\U000F17F7" # mdi:gate-arrow-left
|
||||
- "\U000F17F8" # mdi:gate-alert
|
||||
- "\U000F06A9" # mdi:robot
|
||||
- "\U000F00DF" # mdi:brightness-6
|
||||
- "\U000F05A8" # mdi:white-balance-sunny
|
||||
- "\U000F03D8" # mdi:palette
|
||||
- "\U000F0425" # mdi:power
|
||||
- "\U000F0379" # mdi:monitor
|
||||
- "\U000F04B9" # mdi:sofa
|
||||
- "\U000F0502" # mdi:television
|
||||
- "\U000F0769" # mdi:ceiling-light
|
||||
- "\U000F1051" # mdi:led-strip-variant
|
||||
- "\U000F1793" # mdi:chandelier
|
||||
- "\U000F18DE" # mdi:ceiling-light-multiple-outline
|
||||
- "\U000F181C" # mdi:countertop
|
||||
- "\U000F04DE" # mdi:stove
|
||||
- "\U000F06B5" # mdi:lamp
|
||||
- "\U000F07F4" # mdi:television-classic
|
||||
- "\U000F0C6E" # mdi:emoticon-dead
|
||||
- "\U000F0DDC" # mdi:monitor-star
|
||||
- "\U000F0E2E" # mdi:fireplace
|
||||
- "\U000F0E2F" # mdi:fireplace-off
|
||||
- "\U000F0AD7" # mdi:radiator-disabled
|
||||
- "\U000F0AD8" # mdi:radiator-off
|
||||
- file:
|
||||
type: web
|
||||
url: https://github.com/Templarian/MaterialDesign-Webfont/raw/v7.4.47/fonts/materialdesignicons-webfont.ttf
|
||||
@@ -298,27 +302,27 @@ font:
|
||||
size: 52
|
||||
bpp: 4
|
||||
glyphs:
|
||||
- "\U000F0594"
|
||||
- "\U000F0599"
|
||||
- "\U000F0595"
|
||||
- "\U000F0590"
|
||||
- "\U000F0591"
|
||||
- "\U000F0597"
|
||||
- "\U000F0596"
|
||||
- "\U000F0598"
|
||||
- "\U000F067F"
|
||||
- "\U000F0592"
|
||||
- "\U000F0593"
|
||||
- "\U000F067E"
|
||||
- "\U000F059D"
|
||||
- "\U000F059E"
|
||||
- "\U000F05D6"
|
||||
- "\U000F0299"
|
||||
- "\U000F116A"
|
||||
- "\U000F1169"
|
||||
- "\U000F17F7"
|
||||
- "\U000F17F8"
|
||||
- "\U000F06A9"
|
||||
- "\U000F0594" # mdi:weather-night
|
||||
- "\U000F0599" # mdi:weather-sunny
|
||||
- "\U000F0595" # mdi:weather-partly-cloudy
|
||||
- "\U000F0590" # mdi:weather-cloudy
|
||||
- "\U000F0591" # mdi:weather-fog
|
||||
- "\U000F0597" # mdi:weather-rainy
|
||||
- "\U000F0596" # mdi:weather-pouring
|
||||
- "\U000F0598" # mdi:weather-snowy
|
||||
- "\U000F067F" # mdi:weather-snowy-rainy
|
||||
- "\U000F0592" # mdi:weather-hail
|
||||
- "\U000F0593" # mdi:weather-lightning
|
||||
- "\U000F067E" # mdi:weather-lightning-rainy
|
||||
- "\U000F059D" # mdi:weather-windy
|
||||
- "\U000F059E" # mdi:weather-windy-variant
|
||||
- "\U000F05D6" # mdi:alert-circle-outline
|
||||
- "\U000F0299" # mdi:gate
|
||||
- "\U000F116A" # mdi:gate-open
|
||||
- "\U000F1169" # mdi:gate-arrow-right
|
||||
- "\U000F17F7" # mdi:gate-arrow-left
|
||||
- "\U000F17F8" # mdi:gate-alert
|
||||
- "\U000F06A9" # mdi:robot
|
||||
|
||||
script:
|
||||
# counts as activity: wakes the dimmed screen and restarts the idle timeout back to the home page
|
||||
@@ -744,6 +748,21 @@ lvgl:
|
||||
id: today_low
|
||||
text: ""
|
||||
text_color: 0x8E8E93
|
||||
# state icons above today's weather; *_icon.yaml packages add them, the first one on the right
|
||||
- obj:
|
||||
id: home_icons
|
||||
clickable: false
|
||||
align: BOTTOM_RIGHT
|
||||
y: -90
|
||||
width: SIZE_CONTENT
|
||||
height: SIZE_CONTENT
|
||||
bg_opa: TRANSP
|
||||
border_width: 0
|
||||
pad_all: 0
|
||||
layout:
|
||||
type: FLEX
|
||||
flex_flow: ROW_REVERSE
|
||||
pad_column: 14
|
||||
# Status: boot screen until Home Assistant connects, then the last (diagnostic) page
|
||||
- id: page_status
|
||||
styles: page_style
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
# Package: radiator icon in the home page icon row:
|
||||
# disabled (grey) while the thermostat does not call for heat, off (grey) while it does but the off-peak tariff
|
||||
# is off (the boiler is then hard off) and the fireplace is out, on (white) while it heats.
|
||||
# Hidden outside the heating season: boiler switch off and the fireplace out.
|
||||
# vars: id (prefix of its ids, unique per icon), entity (climate);
|
||||
# defaults: boiler (switch that lets the boiler fire), fire (fireplace binary_sensor), off_peak (tariff binary_sensor)
|
||||
defaults:
|
||||
boiler: switch.heating_enabled
|
||||
fire: binary_sensor.heating_fireplace_fire
|
||||
off_peak: binary_sensor.heater_off_peak
|
||||
|
||||
lvgl:
|
||||
pages:
|
||||
- id: !extend page_home
|
||||
widgets:
|
||||
- obj:
|
||||
id: !extend home_icons
|
||||
widgets:
|
||||
- label:
|
||||
id: ${id}_icon
|
||||
text: "\U000F0AD8"
|
||||
text_font: icon_s
|
||||
text_color: 0x48484A
|
||||
|
||||
script:
|
||||
- id: ${id}_update
|
||||
then:
|
||||
- lambda: |-
|
||||
const std::string &boiler = id(${id}_boiler).state, &fire = id(${id}_fire).state;
|
||||
const bool demand = id(${id}_action).state == "heating";
|
||||
// the burning fireplace heats the water without the boiler
|
||||
const bool heating = demand && (id(${id}_off_peak).state != "off" || fire == "on");
|
||||
lv_label_set_text(id(${id}_icon), !demand ? "\U000F0AD7" : heating ? "\U000F0438" : "\U000F0AD8");
|
||||
const bool unavailable = ha_unavailable(id(${id}_mode).state);
|
||||
lv_obj_set_style_text_color(id(${id}_icon), lv_color_hex(heating ? 0xFFFFFF : unavailable ? 0x48484A : 0x8E8E93), 0);
|
||||
lv_obj_set_hidden(id(${id}_icon), boiler == "off" && fire == "off");
|
||||
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
id: ${id}_boiler
|
||||
entity_id: ${boiler}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: ${id}_update
|
||||
- platform: homeassistant
|
||||
id: ${id}_fire
|
||||
entity_id: ${fire}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: ${id}_update
|
||||
- platform: homeassistant
|
||||
id: ${id}_off_peak
|
||||
entity_id: ${off_peak}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: ${id}_update
|
||||
# the climate state only tells whether the thermostat is reachable
|
||||
- platform: homeassistant
|
||||
id: ${id}_mode
|
||||
entity_id: ${entity}
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: ${id}_update
|
||||
- platform: homeassistant
|
||||
id: ${id}_action
|
||||
entity_id: ${entity}
|
||||
attribute: hvac_action
|
||||
internal: true
|
||||
on_value:
|
||||
- script.execute: ${id}_update
|
||||
+1
-1
@@ -25,7 +25,7 @@ esphome:
|
||||
friendly_name: nRF ANT+
|
||||
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr); RadiANT needs NCS
|
||||
zephyr:
|
||||
nrf:
|
||||
variant: NRF52
|
||||
board: nrf52840dk/nrf52840
|
||||
framework:
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ esphome:
|
||||
name: mcu-nrf-dk
|
||||
friendly_name: nRF DK
|
||||
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet
|
||||
zephyr:
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no nrf: platform yet
|
||||
nrf:
|
||||
variant: NRF52
|
||||
board: nrf52840dk/nrf52840
|
||||
framework:
|
||||
|
||||
@@ -52,6 +52,9 @@ packages:
|
||||
l_lamp_left: !include {file: common/nspanel_terminal/light_tile.yaml, vars: {page: page_bedroom, id: l_lamp_left, name: "Nočná lampa R", entity: light.mcu_bedroom_lamp_left_light, icon: "\U000F06B5", dim: true, kmin: 1701, hs: true}}
|
||||
# Kúrenie
|
||||
thermo: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Spálňa", prev: page_bedroom, next: page_status, entity: climate.bt_trv_bedroom}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_bedroom}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, thermostat pages from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
@@ -82,6 +82,9 @@ packages:
|
||||
gate_auto_close: !include {file: common/nspanel_terminal/switch_tile.yaml, vars: {page: page_gate_auto, id: gate_auto_close, name: "Auto-zatváranie", entity: switch.mcu_gate_auto_close, icon: "\U000F17F7", domain: switch}}
|
||||
# Kúrenie
|
||||
thermostat: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Romanko", prev: page_irrigation, next: page_gate, entity: climate.bt_trv_office_r}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_office_r}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, the thermostat page from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
@@ -67,6 +67,10 @@ packages:
|
||||
# Kúrenie
|
||||
thermo: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Obývačka", prev: page_gate, next: page_thermostat_room, entity: climate.bt_trv_living_room_kitchen}}
|
||||
thermo_room: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo_room, page: page_thermostat_room, title: "Kúrenie - Izba", prev: page_thermostat, next: page_status, entity: climate.bt_trv_room}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_living_room_kitchen}}
|
||||
i_radiator_room: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator_room, entity: climate.bt_trv_room}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, thermostat pages from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
@@ -56,6 +56,9 @@ packages:
|
||||
gate_auto_close: !include {file: common/nspanel_terminal/switch_tile.yaml, vars: {page: page_gate_auto, id: gate_auto_close, name: "Auto-zatváranie", entity: switch.mcu_gate_auto_close, icon: "\U000F17F7", domain: switch}}
|
||||
# Kúrenie
|
||||
thermo: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Janko", prev: page_gate, next: page_status, entity: climate.bt_trv_office_j}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_office_j}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, thermostat pages from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
@@ -55,6 +55,9 @@ packages:
|
||||
gate_auto_close: !include {file: common/nspanel_terminal/switch_tile.yaml, vars: {page: page_gate_auto, id: gate_auto_close, name: "Auto-zatváranie", entity: switch.mcu_gate_auto_close, icon: "\U000F17F7", domain: switch}}
|
||||
# Kúrenie
|
||||
thermostat: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Romanko", prev: page_gate, next: page_status, entity: climate.bt_trv_office_r}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_office_r}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, the thermostat page from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
@@ -76,6 +76,9 @@ packages:
|
||||
gate_auto_close: !include {file: common/nspanel_terminal/switch_tile.yaml, vars: {page: page_gate_auto, id: gate_auto_close, name: "Auto-zatváranie", entity: switch.mcu_gate_auto_close, icon: "\U000F17F7", domain: switch}}
|
||||
# Kúrenie
|
||||
thermo: !include {file: common/nspanel_terminal/thermostat.yaml, vars: {id: thermo, page: page_thermostat, title: "Kúrenie - Obývačka", prev: page_gate, next: page_status, entity: climate.bt_trv_living_room_kitchen}}
|
||||
# home page icons, right to left
|
||||
i_fire: !include common/nspanel_terminal/fireplace_icon.yaml
|
||||
i_radiator: !include {file: common/nspanel_terminal/radiator_icon.yaml, vars: {id: i_radiator, entity: climate.bt_trv_living_room_kitchen}}
|
||||
|
||||
# the grid pages; home, status and light detail come from panel.yaml, thermostat pages from thermostat.yaml
|
||||
lvgl:
|
||||
|
||||
+35
-35
@@ -8,47 +8,47 @@ esphome:
|
||||
name: mcu-stm32-blackpill
|
||||
friendly_name: STM32 Black Pill
|
||||
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet
|
||||
zephyr:
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no stm32: platform yet
|
||||
stm32:
|
||||
variant: STM32F4
|
||||
board: blackpill_f401cc
|
||||
framework:
|
||||
type: zephyr
|
||||
advanced:
|
||||
runner: dfu-util
|
||||
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
|
||||
single_slot: true
|
||||
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
|
||||
kconfig_options:
|
||||
SETTINGS_NVS_SECTOR_COUNT: 2
|
||||
# the stock table puts slot1 at 0x40000, past the end of the 256K flash;
|
||||
# MCUboot in sectors 0-1, storage in 2-3, the app in 4-5.
|
||||
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
|
||||
overlays:
|
||||
app: &partitions |
|
||||
&flash0 {
|
||||
/delete-node/ partitions;
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 DT_SIZE_K(32)>;
|
||||
read-only;
|
||||
};
|
||||
storage_partition: partition@8000 {
|
||||
label = "storage";
|
||||
reg = <0x00008000 DT_SIZE_K(32)>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x00010000 DT_SIZE_K(192)>;
|
||||
advanced:
|
||||
runner: dfu-util
|
||||
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
|
||||
single_slot: true
|
||||
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
|
||||
kconfig_options:
|
||||
SETTINGS_NVS_SECTOR_COUNT: 2
|
||||
# the stock table puts slot1 at 0x40000, past the end of the 256K flash;
|
||||
# MCUboot in sectors 0-1, storage in 2-3, the app in 4-5.
|
||||
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
|
||||
overlays:
|
||||
app: &partitions |
|
||||
&flash0 {
|
||||
/delete-node/ partitions;
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 DT_SIZE_K(32)>;
|
||||
read-only;
|
||||
};
|
||||
storage_partition: partition@8000 {
|
||||
label = "storage";
|
||||
reg = <0x00008000 DT_SIZE_K(32)>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x00010000 DT_SIZE_K(192)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
|
||||
mcuboot: *partitions
|
||||
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
|
||||
mcuboot: *partitions
|
||||
|
||||
logger:
|
||||
hardware_uart: USB_CDC
|
||||
|
||||
+31
-31
@@ -8,43 +8,43 @@ esphome:
|
||||
name: mcu-stm32-nucleo
|
||||
friendly_name: STM32 Nucleo
|
||||
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet
|
||||
zephyr:
|
||||
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no stm32: platform yet
|
||||
stm32:
|
||||
variant: STM32F4
|
||||
board: nucleo_f411re
|
||||
framework:
|
||||
type: zephyr
|
||||
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
|
||||
single_slot: true
|
||||
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
|
||||
kconfig_options:
|
||||
SETTINGS_NVS_SECTOR_COUNT: 2
|
||||
# nucleo_f411re ships no partitions at all: MCUboot in sectors 0-1, storage in 2-3, the app in 4-7.
|
||||
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
|
||||
overlays:
|
||||
app: &partitions |
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 DT_SIZE_K(32)>;
|
||||
read-only;
|
||||
};
|
||||
storage_partition: partition@8000 {
|
||||
label = "storage";
|
||||
reg = <0x00008000 DT_SIZE_K(32)>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x00010000 DT_SIZE_K(448)>;
|
||||
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
|
||||
single_slot: true
|
||||
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
|
||||
kconfig_options:
|
||||
SETTINGS_NVS_SECTOR_COUNT: 2
|
||||
# nucleo_f411re ships no partitions at all: MCUboot in sectors 0-1, storage in 2-3, the app in 4-7.
|
||||
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
|
||||
overlays:
|
||||
app: &partitions |
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 DT_SIZE_K(32)>;
|
||||
read-only;
|
||||
};
|
||||
storage_partition: partition@8000 {
|
||||
label = "storage";
|
||||
reg = <0x00008000 DT_SIZE_K(32)>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x00010000 DT_SIZE_K(448)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
|
||||
mcuboot: *partitions
|
||||
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
|
||||
mcuboot: *partitions
|
||||
|
||||
logger:
|
||||
|
||||
|
||||
Reference in new issue
Block a user