ditch arduino's hacky-hacky FS, back to zephyr native

mg24 fix
dfu zip generation fix
This commit is contained in:
liquidraver
2026-03-03 13:46:48 +01:00
parent 6cb80a31af
commit 57d8cf1c46
27 changed files with 572 additions and 175 deletions
+15
View File
@@ -485,6 +485,21 @@ int main(void)
k_sleep(K_MSEC(100));
LOG_INF("=== ZephCore starting ===");
/* Log reset reason so we can diagnose random reboots */
{
uint32_t cause;
if (hwinfo_get_reset_cause(&cause) == 0) {
LOG_INF("Reset cause: 0x%08x%s%s%s%s%s%s", cause,
(cause & RESET_PIN) ? " PIN" : "",
(cause & RESET_SOFTWARE) ? " SOFTWARE" : "",
(cause & RESET_BROWNOUT) ? " BROWNOUT" : "",
(cause & RESET_POR) ? " POR" : "",
(cause & RESET_WATCHDOG) ? " WATCHDOG" : "",
(cause & RESET_CPU_LOCKUP)? " LOCKUP" : "");
hwinfo_clear_reset_cause();
}
}
if (!ZephyrDataStore::mount()) {
LOG_ERR("LittleFS mount failed");
}