mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
ESP.restart() doesn't work, typo fixes (#2216)
New FAQ item: ESP.restart() doesn't work Write up review / typo fixes
This commit is contained in:
committed by
Ivan Grokhotkov
parent
31a72cebb0
commit
dd1a7e91b8
@ -11,7 +11,7 @@ Please feel free to contribute if you believe that some frequent issues are not
|
||||
|
||||
### I am getting "espcomm_sync failed" error when trying to upload my ESP. How to resolve this issue?
|
||||
|
||||
This message indicates issue with uploading ESP module over a serial connection. There are couple of possible causes, that depend on type of your module, if you use separate USB to serial converter [:arrow_right:](a01-espcomm_sync-failed.md)
|
||||
This message indicates issue with uploading ESP module over a serial connection. There are couple of possible causes, that depend on the type of your module, if you use separate USB to serial converter [:arrow_right:](a01-espcomm_sync-failed.md)
|
||||
|
||||
### Why esptool is not listed in "Programmer" menu? How do I upload ESP without it?
|
||||
|
||||
@ -36,3 +36,10 @@ The reason we cannot have more than 1MB of code in flash has to do with a hardwa
|
||||
|
||||
The option to choose 4M or 1M SPIFFS is to optimize the upload time. Uploading 3MB takes a long time so sometimes you can just use 1MB. Other 2MB of flash can still be used with ``` ESP.flashRead ``` and ``` ESP.flashWrite ``` APIs if necessary.
|
||||
|
||||
|
||||
### I have observed a case when ESP.restart() doesn't work. What is the reason for that?
|
||||
|
||||
You will see this issue only if serial upload was not followed by a physical reset (e.g. power-on reset). For a device being in that state ESP.restart() will not work. Apparently the issue is caused by [one of internal registers not being properly updated until physical reset](https://github.com/esp8266/Arduino/issues/1017#issuecomment-200605576). This issue concerns only serial uploads. OTA uploads are not affected. If you are using ESP.restart(), the work around is to reset ESP once after each serial upload.
|
||||
|
||||
Ref. [#1017](https://github.com/esp8266/Arduino/issues/1017), [#1107](https://github.com/esp8266/Arduino/issues/1107), [#1782](https://github.com/esp8266/Arduino/issues/1782)
|
||||
|
||||
|
Reference in New Issue
Block a user