Replies: 15 comments 9 replies
|
Can you connect to the uart or usb port on the device and get all the logs? It should log why it didn't boot correctly. |
|
Hello all, Sorry it took a while to get here to fetch the logs. I've tried to flash the beta firmware v2.0.0-beta.2 and the board gets into a crash loop during the boot. I've flashed the firmware via the usb cable as per instructions with the web flash tool. https://web.esphome.io/ Please see the boot log attached. Thx , |
|
I can't get the esp32-p4 to work not even if I revert esphome to 2026.5.3. and tigo v1.4.5. |
|
Hey! I'll take a look here in a bit. That Beta is pretty outdated, I'll cut a fresh one off the next branch to get that caught up. |
|
Thanks for grabbing the logs, Oss — that helped a lot. Two things: a fresh beta, and what your log is actually telling us. Fresh beta is up: external_components:
- source:
type: git
url: https://github.com/RAR/esphome-tigomonitor
ref: v2.0.0-beta.3But heads-up — I don't think a version bump alone fixes what your log shows. The crash is at the framework level, before any of this integration runs: It's dying in a tight boot loop before ESPHome prints a single line — so none of the tigo code has run yet. That assert means a task whose stack is in PSRAM did a flash operation (during a flash write the cache is disabled, PSRAM goes unreadable, and the task's own stack disappears). That also lines up with it crashing on both beta.2 and v1.4.5 — it's not the integration version, it's the P4 board/framework config. A couple of things from your log worth checking:
Also worth confirming: the P4 has no built-in Wi-Fi, so it needs an ESP32-C6/-C5 companion wired up via |
|
Esphome version is 2026.7.0 |
|
That helps — thanks. I can see what's going on now: your config is the old pre-2.0 1. The boot loop — your PSRAM is over-clocked. You've got: psram:
mode: hex
speed: 200MHzbut 200 MHz on the P4 is an experimental PSRAM speed — it only works when experimental IDF features are enabled, which your config doesn't do. So PSRAM comes up unstable, and since a task stack lives in PSRAM, its first flash access trips that Two ways to fix; try the first one, it's the simplest test: # Option A — run PSRAM at a safe speed (no experimental flag needed)
psram:
mode: hex
speed: 80MHz# Option B — keep 200MHz, but enable the experimental gate it requires
esp32:
framework:
type: esp-idf
version: recommended
advanced:
enable_idf_experimental_features: yes
psram:
mode: hex
speed: 200MHzAlso uncomment 2. Once it boots, you'll be missing the 2.0 storage bits. The History view (esp_tsdb) needs a flash partition + two managed components that your config doesn't have yet. Add: esp32:
flash_size: 16MB
partitions: partitions/tigo-16mb.csv # grab from the repo's boards/partitions/
framework:
components:
- name: zakery292/esp_tsdb
source: https://github.com/RAR/esp_tsdb.git
ref: tigomonitor # P4 still needs the fork here
- joltwallet/littlefs^1.16Honestly the cleanest path is to start from the current P4 reference config instead of the old example — I'm also refreshing the two example P4 configs in the repo so they carry the experimental-features flag + storage scaffolding out of the box — that'll spare the next person this exact crash. Give Option A a shot and paste the boot log if it still loops. |
|
Used your config template boards/test-p4-tigomonitor.yaml Here is the config: Boot log: |
|
put https://rar.github.io/esphome-tigomonitor/ together this morning to help out with this kinda thing. Try setting your PSRAM to 80Mhz. I'll update that config to correct that being 200. |
|
It seems like the esp32-p4 nano only supports But when I commented the section it has booted up, obviously with the performance penalty :/ |
|
I have a similar board, let me try it out with your config. |
|
and yeah VARIANT_ESP32P4: (20, 100, 200), my bad totally led you wrong there. |
|
OK, I did your exact config on an esp32-p4-wifi6 (https://docs.waveshare.com/ESP32-P4-WIFI6) and it had zero issues at 200Mhz psram. I fear it may be the board itself. |
|
This project is amazing! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello Rar,
It seems like the OTA roles back on ESPHome 2026.6.2. ESP32-P4-nano
[11:17:52.591][I][app:158]: ESP32 Chip: ESP32-P4 rev1.3, 2 core(s)
[11:17:52.878][W][safe_mode:094]: OTA rollback detected! Rolled back from partition 'app0'
[11:17:52.878][W][safe_mode:094]: The device reset before the boot was marked successful
I updated it from 2026.5.1
Any idea?
All reactions