-
Notifications
You must be signed in to change notification settings - Fork 66
Debugging
The device restarts itself if fatal errors or unhandled exceptions occur.
When building a firmware yourself, you might be able to start the Platformio monitor after writing the firmware image. Visual Studio Code does that for you by default. If an unwanted reboot occurs, the backtrace will automatically be filtered and translated to lines of code.
Many users do not build their firmware themselves, or can attach the Platformio monitor to the device.
In such instances, it is advised to find a way to capture the device's serial log. The web console output is not conclusive. Tools like minicom -C <capturefile>
may be used on Linux, or Putty on Windows, which also has an option to write a log file.
The log will contain valuable information. Not all errors are equal, but a backtrace should always be printed to the serial console as part of the error handling before the device actually reboots. This backtrace tells what functions were involved when the error occurred.
- The commit hash the firmware was built from that produced the backtrace.
- The platform the firmware was built for, like
generic_esp32
.
The backtrace contains addresses of the functions that most recently were called. These can be translated using addr2line
, but require a compatible ELF file. That file is created as part of the default platformio
build and can be (re)build for the commit and platform in question, if required.
A tool like schlimmchen's ESP backtrace decoder can make it easier to decode the whole backtrace. It requires the platform, backtrace file, and ELF file as input, searches the addr2line
utility that was installed by Platformio, and feeds the addresses to addr2line
.
- Home
- FAQ
- First-Time Installation
- Device Profiles (Pin Config)
- Upgrade from OpenDTU
- Getting Help
- Hilfe erhalten
- Builds & Examples
- ESP32 Versions and Memory
- Victron MPPT solar charger
- VE.Direct
- Victron Smartshunt
- Victron Smart Battery Sense
- Warning on Victron MPPT 100/20
- Pylontech battery
- Pytes battery
- Huawei AC PSU
- SBS Unipower Battery
- Jikong JK BMS
- HOYMILES
- Einschaltstrombegrenzung für Balkonkraftwerke - Inrush current limiter
- Live View
- Farbe des Wechselrichterfensters
- Power Meter
- Dynamic Power Limiter
- Dynamic Power Limiter ‐ (Full) Solar‐Passthrough
- Dynamic Power Limiter Limitations
- DC Voltage ‐ Load correction factor
- Battery
- Battery-Tipps
- 24V Battery issues with Hoymiles
- Home Assistant
- Grafana Dashboard
- XXL Balkonkraftwerk 1500 Watt und mehr! Worauf Ihr achten solltet!
- Wie gefährlich kann ein Balkonkraftwerk werden (FI‐Schutzschalter)
- Hardware Purchase Tipp
- Fan speed controller ‐ add temperature sensing to any fan
- Cable length(s) between battery and inverter
- Kabellänge(n) zwischen Batterie und Wechselrichter
- Diodes ‐ Bypass vs. Blocking Diodes
- Impact of high start-currents to the inverter
- Making Cables for your HOYMILES‐CAUTION