Fix Wi-Fi credential save with plain NVS (encryption off).

Initialise NVS before integration startup, recover from encrypted-partition mismatches without re-enabling encryption, and improve provisioning logs and POST body handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 14:10:00 +02:00
co-authored by Cursor
parent 8609d038be
commit 7d3369b098
8 changed files with 102 additions and 19 deletions
+7
View File
@@ -1,5 +1,12 @@
# Flash and NVS encryption (T8)
> **Current bring-up (2026):** `sdkconfig.defaults` keeps
> `CONFIG_NVS_ENCRYPTION` and `CONFIG_SECURE_FLASH_ENC_ENABLED` **disabled**
> for Si4684 board validation. Wi-Fi credentials are stored in **plain NVS**.
> After flashing firmware that previously used encrypted NVS, run
> `idf.py erase-flash flash` once so the partition format matches (or rely on
> automatic NVS erase on `ESP_ERR_NVS_WRONG_ENCRYPTION` at boot).
DigiRadio stores Wi-Fi credentials, preset lists, audio profiles, and the last
preset index in the `digiradio` NVS namespace. Firmware **0.8.3+** enables: