Troubleshooting¶
Common failure modes, what causes them, and how to recover. For hardware-level diagnostics see the Hardware section.
Boot Issues¶
Symptom: No serial output at boot¶
- Check baud rate. 230 400, 8N1. Not 115 200.
- USB-C cable. Must be data-capable (not power-only).
- Try a different USB port. Some hubs fail intermittently.
- Unplug the main power cable. USB-C goes in only with every other plug out.
Symptom: Boot loops (repeated === SYSTEM STARTUP ===)¶
Most common causes:
| Cause | Indicator | Fix |
|---|---|---|
FATAL: ... ps_malloc failed |
Boot log shows the failed allocation | PSRAM is missing or mis-detected. Verify the WROOM-1 part has the -N16R8 suffix (16 MB flash, 8 MB PSRAM). Rebuild with PSRAM=opi in the board options |
| Watchdog reboot during setup | Guru Meditation Error or rst:0xc reset reason |
A specific setup step is hanging. Comment out subsystems one at a time to bisect — start with initializeHardware() |
| Brownout | rst:0xf (BROWNOUT_RST) |
Power supply can't deliver enough current during boot. Add bulk capacitance at the input |
Stuck on Cannot continue without filesystem |
User-data storage failed to mount and the automatic reformat also failed | The firmware already attempts a reformat by itself (formatOnFail), so reaching this halt means storage is not recoverable in place. Power-cycle once more; if it persists, contact joe@xengineering.net |
Symptom: Booted but no WiFi network appears¶
- First boot detection — the firmware enters CONFIG mode automatically on first boot. The AP should be at
ALTERNATOR_WIFI-XXXXXX/alternator123(the setup password), where the last six characters are that unit's hardware ID. The setup page then requires a new hotspot password before it saves anything. - GPIO46 stuck low — also forces AP mode. Check the boot serial log; "GPIO46 LOW: OPERATIONAL AP MODE" means the pin is being held low.
- GPIO45 stuck low — forces CONFIG mode regardless of saved credentials. Check for "GPIO45 LOW: FORCED CONFIGURATION MODE" in the boot log.
- WiFi hardware fault — rare. Look for "WiFi connection failed" repeats in the serial log.
Forced recovery (any state)¶
This is the master table for the recovery straps. All are active-low: connect the wire to Cable 4 pin 16 (brown, switch return) and hold it there at boot.
| Function | Cable and wire color | Connector pin | ESP32 GPIO | Effect at boot |
|---|---|---|---|---|
| Factory firmware | Cable 4 Orange/White | RJ3 pin 9 | GPIO41 | Boots from the factory partition, shown as Factory Golden under Software Image (recovers from a bad OTA image) |
| Wake wire | Cable 4 Orange | RJ3 pin 10 | GPIO5 | Wakes WiFi and the dashboard with the engine off (this strap works at any time, not only at boot) |
| WiFi reset / CONFIG mode | Cable 4 Green/White | RJ3 pin 11 | GPIO45 | Forces CONFIG mode with default AP credentials. Alternator stays off until a restart with this wire disconnected |
| AP/hotspot mode | Cable 4 Blue | RJ3 pin 12 | GPIO46 | Forces AP mode with custom credentials. Full alternator operation |
Full cable pinout: Data Cables & Pinout → Cable 4. User-facing procedures for the pin 11 and pin 9 straps: Connecting → Override wires.
WiFi / Dashboard Issues¶
Symptom: Dashboard won't load¶
- Wrong URL — Client mode uses
http://alternator.local, orhttp://xreg-XXXXXX.localfor one specific unit. The XREG-010's hotspot (AP mode) useshttp://192.168.4.1. Use HTTP, not HTTPS. - mDNS not resolving — some networks block mDNS, and it is unreliable over a phone hotspot. Find the IP directly from your router's connected-devices list or an Android hotspot's Connected devices list, then browse to
http://<that-IP>. An iPhone hotspot has no device list; use the app or the Mac one-liner in Reaching the dashboard over a hotspot. - Over a phone hotspot the address changes — the regulator can come back at a different
172.20.10.Xafter the hotspot restarts; see Reaching the dashboard over a hotspot. - Loading from the hosted site over https — a secure page can't reach a plain-
httplocal device. Go directly tohttp://alternator.localor the regulator's IP. - Browser cache — hard-reload (Cmd-Shift-R / Ctrl-F5) once. The dashboard is five files served together (
index.html,styles.css,script.js, and the two plotting-library files), and they are a matched set: every one is sent withCache-Control: no-cacheand an ETag, so the browser re-checks each on every load and normally gets a 304 with no re-download. A hard reload clears the case where one of the five was still cached from an older bundle. - Capacitor app — see Dashboard Architecture → Connection Lifecycle.
Symptom: Regulator connects to a phone hotspot, then immediately drops¶
- Budget prepaid carrier blocking it — a few low-cost prepaid plans (Visible is a confirmed one) restrict their Personal Hotspot and deauthenticate the regulator within a second or two of it associating, even when it is the only device connected. On the serial console you'll see a WiFi connect followed right away by
WiFi STA disconnect reason: 2 (AUTH_EXPIRE), thenCLIENT MODE FAILED— the network is disconnecting the regulator, not the regulator failing to join. The workarounds are covered in WiFi Setup → Using your phone's hotspot.
Symptom: Dashboard loads but values don't update¶
- Check the connection dot (left of the X Engineering wordmark) — teal means the live stream is arriving; red or orange pulsing means it is not. The colors, the nine-second silence rule, the auto-retry behavior, and the Connection Lost dialog are all covered in The connection dot.
- CSV schema mismatch — open the browser console (F12). A warning like
[CSV1] schema mismatch: ESP32=34, UI=33means the firmware and dashboard versions are out of sync. Install both together, with an over-the-air update or the USB Firmware Reset.
Symptom: A feature described in the release notes is missing, or an export has fewer columns than expected¶
Firmware and the dashboard files are stored in separate flash partitions and can be updated independently, so the two can end up at mismatched versions.
- An over-the-air update installs both together, and so does the USB Firmware Reset. Use one of those whenever the versions need to match.
- A plain Arduino IDE or
arduino-cliupload writes firmware only. The dashboard files stay at whatever was last flashed. Writing the web bundle by itself is the reverse: dashboard files only, no firmware. Either one alone leaves a mismatch. - How the mismatch shows up — a control or plot is absent, or a downloaded CSV is missing columns. In a mixed export the sections written by the regulator look current while the sections written by the page look older, because the two halves are produced by different software.
- Browser cache is rarely the cause. Each dashboard file is sent with
Cache-Control: no-cacheand a content-hashed ETag, so browsers revalidate on every load. A hard reload (Cmd-Shift-R / Ctrl-F5) is still worth one attempt before re-flashing. - The phone app carries a separate copy of the interface. It does not download the screens from the regulator, so flashing the regulator cannot change them, and force-quitting, clearing app data, or reinstalling will not either. Updating the app is the only way to change them.
Symptom: Settings save fails¶
- Controls unlocked? — press Unlock Controls in the header first. The window closes when any connected device presses Lock Controls or the regulator reboots, and each rejected write is logged to the Console tab (see the settings arm gate). Unlock again and re-submit.
- RPM table not saved. All ten rows of the RPM table need an engine speed above 0, each higher than the row above, and every editable cell needs a number (0 is allowed). The dashboard names the first row that breaks the rule and sends nothing. A table saved with unused rows at 0 has to have every row filled in before it can be saved again.
- Every tab sends you back to Vessel Info. The alert Please complete Vessel Info in Setup tab first means the regulator reported no Vessel Info, or an incomplete record, as it does after Erase All Memory. Fill in the form and save it (Initial Settings → Common Settings problems).
- Save Vessel Info says Not saved. The dashboard could not read the Vessel Info stored on the regulator, which it checks first for a change of system voltage, so it wrote nothing. Check the connection and save again.
- Commissioning Prerequisites says Not saved. One value is not a number or is outside its range. The alert names the setting and the range, and nothing on the screen was written until it is corrected or cleared.
- WiFi password forgotten — the two WiFi passwords are recovered differently. See Forgotten passwords below.
Symptom: An import says the RPM table was not imported¶
The alert reads The RPM table in the file was not imported (speed rows, limits, Keep-Alive, overheat history): all ten rows need an engine speed, each higher than the row above. The file holds a table with a row at 0 or out of order. The rest of the file was applied; the regulator keeps its current RPM table, Keep-Alive column, and per-speed overheat history. Fill in all ten rows under Setup → Alternator → RPM Table and save them, or correct the table on the regulator the file came from and export it again.
Forgotten passwords¶
The regulator has two WiFi passwords, plus an optional settings password that is off unless you turned it on under Setup → System → Settings Password. (With it off, changing dashboard settings needs only the Unlock Controls button.)
| Password | What it protects | If forgotten |
|---|---|---|
| Ship's WiFi password (Client mode) | Joining your boat's network | Boot with GPIO45 LOW → setup page appears → enter new ship-WiFi credentials |
| Hotspot password (AP mode, chosen at first setup) | Joining the regulator's hotspot | Boot with GPIO45 LOW → your hotspot password is erased and the setup hotspot comes up as ALTERNATOR_WIFI-XXXXXX with the setup password alternator123 → the setup page requires a new hotspot password before it saves anything |
| Settings password (optional) | Unlock Controls on a shared network | Boot with GPIO45 LOW → the settings password is cleared along with the hotspot password, and the setup page comes up on the setup password (the saved ship's WiFi is kept) → choose a new hotspot password, then turn the settings password back on with a new one once the dashboard is up |
Note the live dashboard stays fully readable while settings are locked, and turning the alternator off never requires unlocking — only changing settings is gated.
Charging Issues¶
Symptom: Field never engages (duty stays at 0)¶
Ignitionnot detected — verify wiring to the ignition input (GPIO1, optocoupler). The dashboard showsIGNstatus in the header. With no ignition wire connected, turn on Ignition Override under Setup → Engine.OnOfftoggle off — the master alternator-enable toggle in the header.- BMS gate — if
bmsLogic == 1, the BMS input (GPIO42) must be in the active state. CheckbmsLogicLevelOffpolarity setting. - In Idle stage (Float Mode set to No Float, after absorption). This is by design. Charging starts again in Bulk when battery voltage stays below Rebulk Voltage, or discharge current above Rebulk Current Threshold, for the Rebulk Debounce Time; when a trusted state of charge falls to SoC Allow Rebulk Below; or when Float Mode is changed away from No Float.
- In Lockout — a recent safety event triggered the cooldown. Its length depends on the cause: over-voltage cuts use an adaptive 0.5–10 s ladder that resets after 60 s clean, a low-RPM cut uses
RPM_RECOVERY_DELAY(0.5 s), a field-on-but-no-output cut uses a 15–120 s ladder that resets after 10 min clean, and every other cut usesFIELD_COLLAPSE_DELAY(default 30 s). Wait for it to end; the header names the state (protection lockout active or overvoltage lockout) but does not count it down. - A required sensor stopped reading. Charging stops and the header names the sensor (temperature sensor stale, current sensor stale, main battery voltage sensor not responding, and so on). The field stays off until the sensor reads again or you choose to run without it under Setup → System → Run Without Failed Sensors, which also says which protections that disables. The alternator current reading is judged faster while the field is on: 75 rejected or missing readings in a row, about one second, cut the field with current sensor stale, and the field stays off until a good reading arrives. With the field off the limit is 10 s. Check the alternator current sensor and its cable first.
- No Field Resistance recorded. The header shows NO FIELD Ω beside the duty and the field-off line reads Field Resistance not measured. With no resistance the 10 A field ceiling is zero, so the field stays off in every mode. Run the field resistance test (Setup → Alternator → Basic → Output Control → Measure, engine off). A 12 V system with no battery shunt can skip the test on that screen instead.
- Regulator temperature sensor not responding. The INA228's die temperature, which the field-drive heat limit runs on, has had no valid reading for 10 s. The header names it and the field stays off until readings return, in Manual as well. A failed INA228 also stops the main battery voltage reading, so both are named together.
RPM < MinRPMForField— engine not running, or RPM sensor not reading. Check the RPM reading on the dashboard and the tach alignment under Setup → Engine. On a running engine showing zero RPM, suspect the 1 A fuse on the stator tap (Cable 1 pin 4, see Data Cables & Pinout) before anything else. Once RPM holds at zero the firmware cuts the field with reasonRPM_TOO_LOW, so a blown tap fuse presents as a stopped engine rather than as a wiring fault. Manual field mode is exempt from that cut, so it will still drive the field while you trace the tach circuit. Setting Min RPM For Field to 0 does not bypass a failed tach: a zero reading still holds the field off. To charge without a working tach, ignore engine speed under Setup → System → Run Without Failed Sensors.- Defer to Solar paused charging —
currentWeatherMode == 1means the forecast says solar is sufficient (the two-of-three-day vote is explained in Defer to Solar). The dashboard names this one directly: resting — solar forecast is strong (Defer to Solar). Switch it off in Setup → Solar to override. A forecast that can no longer be refreshed releases the pause by itself once it ages out, so this never leaves the alternator off indefinitely.
Symptom: Field engages but voltage doesn't reach bulk¶
uTargetAmpscapped by RPM table — at low RPM the cap table is low by design. Increase the cap-table entry for your operating RPM if your alternator can sustain it.- Thermal derate —
thermalPenaltyAmps > 0. The temperature loop is reducing current to protect the alternator. Look atAlternatorTemperatureFandprojectedTempF. - Field held at Max Field Volts or Max Field (%). The duty readout carries the limit pill, and tapping it reads Field held at Max Field Volts or Field held at Max Field. On a 24, 36, or 48 V system, check Field Winding Voltage in Setup → Vessel Info against the alternator's datasheet first. A winding rated for the bank but left at 12 V is held at a 12 V winding's Max Field Volts: 15 V across a 48 V winding is under a third of its rated field. Then check Max Field Volts (Setup → Alternator → Basic → Output Control) against the rated field voltage, and Max Field (%), which is full field at 99. When the panel reads Field at maximum with neither setting named, the alternator is at full field and more engine speed is the only way to more output.
- Board field ceiling. The header shows 10 A FIELD or DRIVE HEAT beside the duty. 10 A FIELD is the field drive's 10 A rating, against a field current estimated from Field Resistance; DRIVE HEAT is the regulator limiting the field to protect its field drive, and the limit relaxes as the regulator cools. Check that Field Resistance came from the regulator's field resistance test (Setup → Alternator → Basic → Output Control → Measure) rather than from an ohmmeter, which reads high through the brushes. Check too that Field Wiring matches the installation (see Initial Settings).
MaxTableValueceiling — upper limit on the cap table. Increase only if you understand the consequences.
Symptom: Voltage overshoots target¶
- Group 1/2 overvoltage clamps not tuned — if Live Data → Protection shows frequent
fastOvClampCountincrements andcv_Icollapses, the CV loop is over-correcting. Run the Waveform Generator test to find betterVoltageKp/VoltageKivalues. - Load dump —
g_loadDumpCountincrementing means loads are switching off and the current spike is being detected. Working as intended. - System voltage class mismatch — verify
BulkVoltageis in the right range for your battery (e.g. 14.4 V on a 12 V system, not 14.4 V on a 24 V system).
Symptom: Repeated lockouts¶
- Sensor disagreement —
BatteryV(ADS) vsIBV(INA) differ by more thanVoltageDisagreeThresholdforVoltageDisagreeTimeout. Check wiring, calibration, and noise on both inputs. - Overvoltage cut. Battery voltage passed
AlternatorHardShutdownVand the field was cut at once; the header reads overvoltage lockout. This is by design; it means the system measured a dangerous voltage. Press Download Logs (Plots → Short Term) soon after the cut: its voltage-tuning log covers about the last 80 seconds. - Temperature warning sustained —
TempToUse > TemperatureLimitF + TempWarnExcesscontinuously forTempSustainedTimeout(default 2 min). Reduce alternator load, improve cooling, or raiseTemperatureLimitFif your alternator is rated for higher.
Symptom: A Victron GX's charge limits are not followed¶
- VE.CAN LIMITS NOT FOLLOWED in the header. Follow is on with the Victron GX as the source, NMEA 2000 transmit is off, and no limits are arriving over WiFi. With transmit off the regulator cannot ask each device on the backbone for its maker, so it cannot tell the GX's battery limit from another alternator regulator repeating its current share, and it does not follow limits heard over VE.Can. On the Victron GX card under Setup → Integrations, the Over VE.Can line reads none heard until something arrives and not followed, transmit off once it does. Turn on Transmit on NMEA2K in the NMEA 2000 card. Limits sent over WiFi by the X Engineering GX app are followed with transmit off.
- NO EXTERNAL CHARGE LIMITS in the header. Follow is on but no limits arrive from the selected source. Check the source selection, the CAN wiring and bus termination, and for a Victron GX the X Engineering GX app.
- In both cases the regulator charges to its local targets, unless Stop Charging Without Limits is on, which holds charging off until limits are followed again. Pressing the header notice opens Setup → Integrations → Charge-Limit Follow.
Sensor Issues¶
Symptom: Temperature stale / 20 s cut¶
- TempTask hung — Console will show "CRITICAL: TempTask hung up". Indicates Core 0 has stalled. Most often caused by I²C bus issues affecting other Core 0 work.
- DS18B20 read failures — open Live Data → ESP32, and in the Temperature Sensor Health (DS18B20) panel look at
tempReadFailCount,tempCrcFailCount,tempCrcRecoveredCount. Climbing CRC failures = noisy bus, marginal pull-up, or corroded crimp. - Re-enumeration retry — after an enumeration failure the task keeps retrying: every 1 s while the engine is turning (RPM ≥ 200), where the 20 s staleness cut is armed and a fast recovery matters, and every 5 s with the engine stopped, to save standby power. A hot-unplugged sensor is re-detected on the first retry after it is reconnected. (The reading cadence once the sensor is enumerated is throttled separately: every 5 s while the engine is turning, dropping to 1 s after a failed read; with the engine stopped it depends on whether a dashboard is connected — every 5 s with a dashboard connected, every 60 s without.)
Symptom: ADS1115 errors¶
adsI2CErrorCountclimbing — bus contention or wiring fault. Inspect cabling.ADS slow read #Non the serial monitor (adsSlowReadCount). An ADS1115 read took more than 5 ms, which indicates a bus stall. Bench-test with a logic analyzer.ADS1115Disconnected = 1(auto). Set by a failed init at boot, or by 5 consecutive I²C failures at run time. The regulator retries the chip every 30 s and clears the flag by itself when it answers (console: ADS1115 responding again). Until then engine speed reads 0, and alternator current, second battery voltage, and thermistor readings go stale.
Symptom: INA228 errors¶
INA228 read failedon the serial monitor (this one is not mirrored to the dashboard Console tab) — the I²C transaction threw an exception. Throttled to one per 10 s.INADisconnected = 1. Set at boot whenINA.begin()gets no answer from the chip, or at run time after 3 s with no valid bus-voltage read (console: INA228 not responding). It clears by itself: the next successful read re-initializes the chip and re-arms its hardware overvoltage protection (console: INA228 responding again). Until then battery voltage and current hold their last values and are marked stale, and in Auto mode the field stays off with main battery voltage sensor not responding in the header.
Symptom: NMEA 2000 battery readings come from the wrong device¶
The regulator reads battery voltage, current, temperature, and state of charge from the instance set as Read Battery Instance (Setup → Integrations → NMEA 2000), from one sender at a time: the first one it hears. It changes to another sender only after the first has been silent for 10 s, and for voltage, current, and temperature a sender that reports a battery temperature takes over from one that has reported none for 10 s. A value the chosen sender leaves blank keeps its last reading for 10 s, then reads as missing. When two devices share an instance, move the one you do not want to a different instance on that device, or set Read Battery Instance to an instance only the wanted device uses. Changing Read Battery Instance clears the old values and starts the choice over.
Symptom: IMU disabled¶
imuEnabled = falsewith "IMU disabled: N I2C errors in 60s" means 10 or more I²C failures in a rolling minute. Check IMU wiring and I²C bus integrity. The bus already runs at 400 kHz (in-spec Fast-mode for every chip on it), so speed is not the cause. At 800 kHz the ADS1115 stopped responding, andWire.setClock(400000)ininitializeHardware()carries a comment saying not to raise it.
Shutdown and Data Retention¶
When learned data is written to flash¶
Learned data (settings, the alternator-health matrix, the boat-performance matrix, and the pending sensor-history window) is held in RAM while the engine runs and written to flash at shutdown. Flash writes stall the processor for a moment, so keeping them out of a running control loop is deliberate.
After the ignition signal drops:
- The field ramps down.
- As soon as the field is confirmed off, the flush runs: settings first, then the learned matrices.
- If the field goes off without the ignition signal dropping, after a protection cut or when the engine stops, the same flush runs on a timer about half a minute later.
The regulator needs to still be powered when the flush runs. That is a matter of seconds, not minutes.
Symptom: Learned data resets after every trip¶
- Main power switched off along with the engine. The regulator is designed with Power connected permanently and Ignition as the switching input. That is what lets the flush complete after the key is turned off, and what keeps the dashboard reachable at anchor (about 20 mA at 12 V idle; see How much power it uses). Putting the regulator's supply on a switch that is turned off at the same moment as the ignition, or opening a battery isolator immediately after shutdown, cuts power before step 2 above finishes. Settings and everything learned since the last successful flush are lost.
- Symptoms. The alternator-health matrix never accumulates points across trips, the engine-hours trend stays empty, and settings revert to their previous values.
- The fix is wiring, not configuration. Feed the regulator from a permanently live supply and use the ignition input to tell it when the engine is running. If a disconnect switch has to stay in the supply, leave it closed for several seconds after shutdown.
- A hard power cut mid-run does not erase the record — the matrices revert to the last completed flush rather than emptying. Only what was learned since then is lost.
The This Session plot starts empty each run¶
The This Session graph covers the current engine run and is not carried across shutdowns by design. Within a run it is recoverable: the regulator keeps the last two hours of session points itself, so opening the dashboard part-way through a run, reloading the page, or reconnecting after a WiFi dropout refills the graph rather than starting from blank. Gaps longer than two hours come back partially, with a break drawn where the missing stretch was.
The alternator-health matrix, the engine-hours trend, and the boat-performance data are separate from this and do persist across shutdowns, subject to the flush above.
Crash / Reset Investigation¶
The regulator restarts itself on purpose¶
The regulator restarts itself opportunistically, picking the moment with the least activity it can find. This is normal maintenance, not a fault: like any long-running computer, restarting periodically keeps its working memory free of the fragmentation that would otherwise build up over weeks of continuous running.
Its restart conditions relax the longer it has been running:
| Uptime | Restarts when | You see |
|---|---|---|
| After 1 day | Everything is idle: engine off, field off, no dashboard connected, battery healthy, cloud uploads finished or unable to run (no internet, Cloud Features off) | Nothing |
| After 2 days | Engine off, not charging, battery voltage not low, cloud uploads finished or unable to run. A connected dashboard does not postpone it | 10-minute countdown banner, if a dashboard is connected |
| After 3 days | Even under way and charging. The field ramps down first, the same way it does when the ignition is turned off, and is cut outright if it is still on after 90 s | 10-minute countdown banner |
The restart itself takes about 30 seconds. Even in the last case, a low battery, a running guided test, a firmware update in progress, or demo mode still postpones it.
Nothing is lost across a maintenance restart: settings, history, statistics, and any telemetry not yet uploaded are all saved to flash first, and the regulator returns to whatever operating mode it was in, with Alternator Enable as it was. The Max 24-Hour Distance window carries across the restart. With Alarm Latch Mode set to Latched, a latched alarm stays latched, along with a Silence pressed on it (Alarms). Under Live Data → ESP32 this shows up as reset reason "Scheduled maintenance restart", the most common reset reason on a healthy system.
Reading the reset reason¶
Live Data → ESP32 shows LastResetReason in its Session Info panel and, beside it, ancientResetReason, the reset before that one. Both are stored as small integer codes and rendered by the dashboard as plain-English labels. The ones that matter:
| Label shown | Meaning |
|---|---|
| Power-on (plugged in) | Normal cold boot |
| Software reset (unscheduled) | Firmware called ESP.restart() (factory reset, post-OTA) |
| Scheduled maintenance restart | A restart the firmware planned, distinguished from the unscheduled case by a flag file written before rebooting |
| Restart to load an import / Restart after Wi-Fi setup / Restart after Wi-Fi set over USB / Restart to load a cloud settings push | A restart the firmware made to load what was just saved |
| Restart into the factory installer for an update | The first restart of a firmware update: the factory installer downloads and installs it |
| Restart after a firmware update did not install | The install failed and the regulator restarted. The Console line UPDATE: (version) did not install: (reason) gives the reason and says whether the installed firmware is unchanged or the factory firmware is running; see Symptom: A firmware update does not start or does not install |
| Task watchdog (loop blocked) / Interrupt watchdog / Other watchdog | Watchdog timeout — the main loop (Core 1) hung |
| Panic/Exception (crash) | Crash — see coredump partition; this is the case that prints a backtrace |
| CPU lockup (double exception) | Fault while already handling a fault |
| Brownout (power issue) / Power glitch (supply transient) | Supply voltage dipped or had a brief transient |
| External reset (button) / USB reset / JTAG reset | Reset asserted from outside the firmware |
A code the dashboard does not know displays as "Unknown (N)" with the raw number; the ESP32's unclassified reset displays as "Unknown reset". The full code-to-label map is resetReasonLookup in web_src/script.js; the firmware side is captureResetReason() in 5_functions.ino, which also records the raw ESP-level and per-CPU ROM reset codes for cases the plain-English label groups together.
Decoding a crash backtrace¶
When the device prints Guru Meditation Error followed by a backtrace, decode it with the ESP32 toolchain's address-to-source tool (xtensa-esp32s3-elf-addr2line, installed with the board package) against the .elf file from your build. Feed it the 0x42...... application addresses from the backtrace; it prints the source file and function for each.
Cloud / OTA Issues¶
Symptom: Cloud upload says "queued" but never completes¶
- WiFi RSSI. Uploads need a signal of −80 dBm or stronger at the regulator, so a weak signal blocks them. Firmware updates accept a weaker signal, down to −90 dBm (
OTA_MIN_RSSI_DBM). fieldCutSettledgate. The field drive must be switched off for 70 s before uploads run; cycling the engine on/off resets the timer. See Advanced Features → Upload path.- Backoff active — after 5 consecutive failures, uploads suspend for 30 s. Console shows "Cloud sync paused, too many failures, retry in 30s".
- No internet on the network. A Victron GX's access point, a router with no uplink, or a phone hotspot with no signal gives the regulator a WiFi connection and no internet. The backlog waits and uploads once the regulator reaches the internet; see WiFi with no internet.
Symptom: A firmware update does not start or does not install¶
Pressing a version under Cloud Features → Software Update switches Alternator Enable off and opens Checking the connection… while the regulator tests the WiFi signal where it is mounted, its internet access, and the update server. The internet connection of the phone, tablet, or computer does not count, because the regulator downloads the update itself. Nothing is installed unless this check passes. The regulator then waits for the field to switch off and restarts into its factory installer, which downloads and installs the update while the window reads Update in progress…. A regulator already running its factory firmware (Factory Golden under Software Image) skips the check and installs at once. Whenever an update does not install, Alternator Enable goes back to the setting it had before the update, unless you switched the alternator off while it ran (how updates work).
When the check fails, an Update (version) not installed alert gives the reason, and nothing has changed on the regulator:
| Reason shown | What to do |
|---|---|
| the regulator is not connected to WiFi | Updates need the regulator joined to a network with internet (Client mode). On its hotspot (AP mode) the Software Update tab offers no versions. |
| the WiFi signal at the regulator is too weak (−N dBm) | The limit is −90 dBm. Move the access point or hotspot closer to the regulator. |
| the regulator's WiFi network has no internet access | See WiFi with no internet. |
| the regulator could not look up the update server | The network's name lookup (DNS) failed. Restart the router or hotspot and try again. |
| the regulator could not open a secure connection to the update server | Something on the network blocks the connection, such as a marina WiFi sign-in page. Try another network. |
| the regulator is too low on memory for a secure connection | Cycle the regulator's power with the engine off, then try again. |
| version (X) is not on the update server | The version list was out of date. Reopen the Software Update tab and pick again. |
| the update server answered HTTP (code), or the update server did not answer | The update server had a problem. Try again later, and write to joe@xengineering.net if it persists. |
| the update check did not finish | The check ran past 150 s on a slow connection. Try again. |
| the alternator field did not switch off | The field was still on 150 s after Alternator Enable went off. Switch the alternator off in the header, wait for the field to read off, and try again. |
| the update request could not be saved | Try again, and write to joe@xengineering.net if it repeats. |
| an update check is already running | Another phone, tablet, or computer started one. Wait for it to finish. |
When the install itself fails, the regulator restarts. If the update window is still open when it reconnects, the window closes with The update to (version) did not install: (reason). followed by The installed firmware is unchanged. or The regulator is running its factory firmware; run the update again. The Console shows the same reason after the restart, and Live Data → ESP32 shows the reset reason Restart after a firmware update did not install. The reasons from this stage:
- the factory installer could not join WiFi or could not start the download. The installer stops waiting 3 minutes after the restart, clears the update, and restarts. Check the network and run the update again.
- the regulator was not connected to WiFi, had no internet access, or the WiFi signal at the regulator was too weak. The network changed between the check and the install. The fixes are the same as in the table above.
- version (X) is not on the update server, the update's signature did not download, the update's signature download stopped partway, the update server sent a malformed signature, or the download or install did not finish. The connection or the server failed partway. Run the update again; a stronger signal helps.
- the downloaded firmware did not pass verification. The file failed its
signature check and was not installed. Run the update again. On firmware you
built yourself, this also happens when it was built with an
OTA_PUBLIC_KEY(inXregulator.ino) that does not match the key the release was signed with. - a background network task did not stop in time. Run the update again.
Recovery from a bad OTA image¶
- Power off the regulator.
- Connect GPIO41 (Cable 4 Orange/White, RJ3 pin 9) to Cable 4 pin 16 (Brown); see the strap table.
- Power on. Boot log will show
=== We are in factory partition! ===, and Live Data → ESP32 → System Overview → Software Image reads Factory Golden. - Connect to the dashboard normally and install a known-good version from the Cloud Features → Software Update tab.
Last-Resort Recovery¶
Factory reset (preserves only the cloud registration token)¶
- Via dashboard — Setup → System → Security & Maintenance → Erase All Memory (the button reads "Restore Defaults"; settings must be unlocked, plus a confirm dialog). Reformats the LittleFS data partition (logs, history rings, buffered uploads), erases every NVS namespace (where user settings, the vessel description, and lifetime counters are stored), and restarts. Defaults are re-created on the next boot, not during the reset itself, so nothing carries the old values back into flash.
- The one deliberate exception — the cloud registration token is deliberately preserved, so your cloud account, history, and leaderboard entries are kept; the token lifecycle, including the power-loss caveat during the wipe, is in Cloud Account Management. To delete the cloud account too, press Delete My Account first.
- Via GPIO45 boot — enters CONFIG mode with default credentials so you can at least reach the device, but does NOT wipe settings. Use to recover from a lost WiFi password without losing data.
Re-flashing firmware over USB¶
If OTA is broken and GPIO41 boot doesn't help, fall back to USB-C:
- Unplug everything else, then connect USB-C.
- Hold GPIO0 LOW, press Reset, release GPIO0. The chip enters bootloader mode.
- Upload the sketch from the Arduino IDE; see Building the Firmware. Writing the web bundle does not re-flash firmware. The Firmware Reset page reinstalls firmware and dashboard files together from Chrome or Edge, with no toolchain.
An Arduino IDE upload writes the factory application slot (Factory Golden) only. User settings are kept because the LittleFS and NVS partitions are not written. Since a device that has taken an over-the-air update boots from ota_0 (User Updateable), USB-flashed code does not run until you force the factory partition with the GPIO41 strap (see the strap table and OTA Updates → note for contributors).
Getting more help¶
- GitHub Issues — github.com/XEngineeringLLC/XREG-010/issues for bug reports and feature requests.
- Console output — the dashboard's Console tab is the live serial-equivalent log. Save it before reporting an issue.
- ESP32 panel — Live Data → ESP32 shows error counters and runtime diagnostics. Include them in bug reports.