xiao-stm32c5: CANopen node package (canopen + canopen_entities, MCUboot, OTA over CAN), node 0x20 and the TinyUF2 eraser

This commit is contained in:
randy committed 2026-11-29 12:24:04 +01:00
1 parent 0c93059c78
commit 71c31035e5
3 files changed
+171

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
---
# One-shot for a Seeed XIAO STM32C5 still on TinyUF2: erases TinyUF2 5 s after boot (mrk's tinyuf2_eraser, LED on when
# done), then hold BOOT + press RESET (ROM DFU, 0483:df11) and flash the MCUboot build of the node:
# dfu-util -a 0 -s 0x08000000 -D .esphome/build/<node>/.west_build/mcuboot/zephyr/zephyr.bin
# dfu-util -a 0 -s 0x08008000:leave -D .esphome/build/<node>/.west_build/zephyr/zephyr/zephyr.signed.bin
esphome:
name: mcu-stm32-xiao-c5-eraser
on_boot:
priority: -100
then:
- delay: 5s
- tinyuf2_eraser.erase: eraser
# LED on: erased, go to DFU (BOOT + RESET)
- output.turn_on: led_out
external_components:
- source: github://mrk-its/esphome-canopen@canopen_entities
components: [tinyuf2_eraser]
stm32:
variant: STM32C5
board: xiao_stm32c5
logger:
tinyuf2_eraser:
id: eraser
output:
- platform: gpio
id: led_out
pin:
number: PB12
inverted: true