liquidraver
946b871d46
boot reset cause: plain-English hints in the restart notice, fix nrf52840 vbus wake docs
2026-09-19 21:35:22 +02:00
Pieter Viljoen and Claude Opus 5
6ec31e7b7f
capture the reset cause at boot instead of consuming it in main()
...
hwinfo_get_reset_cause() reads a latched register. It was read inline in
main_companion.cpp and cleared there, so the repeater, room server and
observer never read it and never cleared it: their flags carried into the next
boot, and whichever role read first defined what any later reader would see.
helpers/boot_info.c reads it once in a SYS_INIT at POST_KERNEL, logs it,
stores it and clears the register. That runs before main() on every role.
zephcore_boot_reset_cause() hands out the stored copy and reports false where
the platform has no support, which a caller can distinguish from a cause of 0.
The clear's return is discarded deliberately: ESP32 has no
hwinfo_clear_reset_cause() implementation, so the weak stub returns -ENOSYS.
The capture is still correct there; only the next boot's reading is not.
Logging in boot_info_init() rather than only in the consuming role matters
because the clear now happens everywhere. Without it a repeater that rebooted
on WATCHDOG or LOCKUP would have the evidence cleared and recorded nowhere,
where before it survived in the register for whoever read it over SWD.
main_companion.cpp reads the stored copy and renders through a table with one
row per RESET_* bit, so a cause with no label is no longer logged as bare hex.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-09-19 11:58:01 -07:00
liquidraver
a5a67e9ea6
boot_prefs shared helper
2026-09-19 20:42:47 +02:00
liquidraver
edcc40a884
track zephyr main 3e8f38faf93: rebase patches, lora 0.9 api, nrf clock split, s3 heap, lr11xx/lr20xx dc preamble guard, usb kick loop fix
2026-09-19 16:46:14 +02:00
liquidraver
39b9584b20
.editorconfig and .gitattributes
2026-09-18 21:25:19 +02:00
liquidraver
da0450e511
upstream sync + wio tracker 1w
2026-09-16 11:29:45 +02:00
liquidraver
8c21a1609b
lr2021 2.4ghz and seeed evk button fix
2026-09-12 19:46:43 +02:00
liquidraver
69cc148fbe
properly reset CAD offset when needed
2026-09-10 21:56:52 +02:00
liquidraver
eef6a488a2
esp flash fix
2026-09-04 12:14:05 +02:00
liquidraver
1633274e4f
leds refactor/improvement
2026-09-03 14:34:12 +02:00
liquidraver
81a43f6dd1
west update and upstream dev sync
2026-09-02 10:01:34 +02:00
liquidraver
1db0a14c4b
get cad fix
2026-09-02 08:42:51 +02:00
liquidraver
ba33cebf6a
cad improvements
2026-09-01 22:05:29 +02:00
liquidraver
ccb7fc748d
command fixes
2026-08-30 09:27:20 +02:00
liquidraver
7331ca6c58
sync with upstream but held off the companion CLI
2026-08-29 22:08:59 +02:00
liquidraver
5372f1d8a2
auto-enable esp32s3 USB CDC companion in CMakeLists; board.overlay first in overlay order; esp32s3 download-mode reboot
2026-08-28 10:32:49 +02:00
liquidraver
2e3f5f3f59
display/input rotate
2026-08-25 15:19:11 +02:00
liquidraver
9aaa26be31
observer report repeat on/off
2026-08-24 13:19:19 +02:00
liquidraver
f550d06c19
sync some cli responses to upstream
2026-08-24 11:04:26 +02:00
liquidraver
b1f30ff389
clock display fix
2026-08-24 10:54:50 +02:00
liquidraver
6b5e892b38
wirelesstracker improvements
2026-08-24 10:44:28 +02:00
liquidraver
206edcdd5c
t096 improvements
2026-08-23 16:19:25 +02:00
liquidraver
174bce80d9
cleanup/bugfix run
2026-08-23 09:45:14 +02:00
liquidraver
5302d21801
wireless tracker display inversion and button wake fixes
2026-08-22 22:48:27 +02:00
liquidraver
7eb5f3832c
port artifact cleanup
2026-08-22 18:17:42 +02:00
liquidraver
7d695872d4
implement radio.fem.rxgain
2026-08-22 17:32:41 +02:00
liquidraver
46a6b34bdd
switch defaults to sf7/cr5
2026-08-22 11:54:52 +02:00
liquidraver
24e9392cbf
a little more corruption defense
2026-08-22 11:47:53 +02:00
liquidraver
9ba23afbe2
vcontact improvements
2026-08-22 10:50:02 +02:00
liquidraver
1b12354b85
bugfixes, improvements and release notes updates
2026-08-21 15:22:27 +02:00
liquidraver
1263211099
sync with upstream dev
2026-08-20 20:18:13 +02:00
liquidraver
5c4ac21bd4
refactor patches and bump to 1.17.2
2026-08-20 17:50:48 +02:00
liquidraver
533193aa30
fix linux build
2026-08-14 18:04:04 +02:00
liquidraver
50b5fc3aba
bump to 1.17.1 and merge upstream
2026-08-14 14:52:05 +02:00
liquidraver
ae0ff65cce
release note supdate and X1 sensor tuning
2026-08-12 22:14:39 +02:00
liquidraver
aac97f7ade
vcontact and cad fixes
2026-08-12 15:36:51 +02:00
liquidraver
ee90693c89
lr20xx: add freq-error summary log and get freqerr CLI
2026-08-12 15:12:43 +02:00
liquidraver
daeff6d5e6
defer qspi bringup to when we really need it
2026-08-11 13:57:49 +02:00
liquidraver
557aef1883
qspi probe
2026-08-11 13:43:53 +02:00
liquidraver
3494411f83
x1 debug
2026-08-10 19:15:26 +02:00
liquidraver
9f66e9749c
x1 debug v1
2026-08-10 08:32:43 +02:00
liquidraver
41cc786496
the repo is radiating seeed X1 vibes
2026-08-08 15:19:20 +02:00
liquidraver
f83ce0bed4
gps fiddling
2026-08-04 16:04:05 +02:00
liquidraver
4e880df81a
set leds on/off
2026-07-31 08:27:10 +02:00
liquidraver
aa14944a93
enable PM on ESP repeaters that support it
2026-07-30 17:14:05 +02:00
liquidraver
9354975acf
sync with upstream dev
2026-07-30 11:16:31 +02:00
liquidraver
a705d5b5ce
refactor / unify probes
2026-07-29 12:30:47 +02:00
liquidraver
fe6e585eb6
get rid of housekeeping tick and AGC reset
2026-07-28 14:12:40 +02:00
liquidraver
e7adc21687
fix joystick ui 2-tap
2026-07-23 17:09:55 +02:00
liquidraver
a06e813ca1
swap 2tap with 5tap
2026-07-23 14:46:58 +02:00