Update FAQ to document NVS write error (#2191)

This commit is contained in:
Javier Peletier 2022-08-02 07:12:06 +02:00 committed by GitHub
parent 6f754f1e2c
commit 00a2fc4ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,6 +281,22 @@ Some steps that can help with the issue:
although it may also increase power (and possibly battery) usage of other devices also using power
save mode.
Component states not restored after reboot
------------------------------------------
If you notice that some components, like ``climate`` or some switches are randomly not restoring their
state after a reboot, or you get periodic ``ESP_ERR_NVS_NOT_ENOUGH_SPACE`` errors in your debug log,
it could be that the NVS portion of the flash memory is full due to repeatedly testing multiple
configurations (usually large) in the same ESP32 board. Try wiping NVS with the following commands:
.. code-block:: bash
dd if=/dev/zero of=nvs_zero bs=1 count=20480
esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash 0x009000 nvs_zero
Change ``/dev/ttyUSB0`` above to your serial port. If you have changed the partition layout, please adjust the
above offsets and sizes accordingly.
Docker Reference
----------------