Skip to content

Commit

Permalink
Offer some suggestions on random restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jul 9, 2024
1 parent 0a0c5b9 commit 7cd912f
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions docs/source/troubleshooting/random-restart.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Random Restarts
===============

First try setting the baud rate to ``74880``. Example for Linux::
Esp8266
-------

python -m serial.tools.miniterm /dev/ttyUSB0 74880
First try setting the baud rate to ``74880``::

make terminal COM_SPEED=74880

The random symbols should become readable messages.

If you see repeating messages containing ``rf_cal[0] !=0x05`` then most
probably you should ``initialize`` the flash memory on your ESP8266
device.
probably you should ``initialize`` the flash memory on your ESP8266 device.

To achieve this do the following:

Expand All @@ -34,3 +36,18 @@ To achieve this do the following:
4) Verify flash data has been written successfully

make verifyflash


Esp32
-----

Bootloader messages should be visible and may give some indication as to the problem.

If :envvar:`SDK_CUSTOM_CONFIG` has been set in your project, or the SDK configuration has otherwise
been changed from defaults, try reverting it back to defaults::

make sdk-config-clean
make SDK_CUSTOM_CONFIG=

The ESP IDF framework runs on FreeRTOS and there is a known deadlock problem related to flash memory access if FreeRTOS is initialised and running on both cores.
For this reason, the setting ``CONFIG_FREERTOS_UNICODE=y`` must be set. See :issue:`2653`.

0 comments on commit 7cd912f

Please sign in to comment.