ECO and Workarounds for Bugs in ESP32 18 Nov 2016

User avatar
rudi ;-)
Posts: 1730
Joined: Fri Nov 13, 2015 3:25 pm

ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby rudi ;-) » Fri Nov 18, 2016 4:34 pm

hi guys

ECO and Workarounds for Bugs in ESP32
eco_and_workarounds_for_bugs_in_esp32_en.pdf
PDF V1.0 2016.11.18
(348.06 KiB) Downloaded 806 times
This document details the silicon errata and workarounds for the ESP32.
PDF V 1.0 from 18. Nov 2016
errata_workarounds.png
errata_workarounds.png (5.17 KiB) Viewed 10655 times
be sure you allways check espressif resource for update information too

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

onehorse
Posts: 70
Joined: Mon Feb 15, 2016 1:35 am

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby onehorse » Sun Nov 20, 2016 5:51 am

How is it possible for any ESP32 development board or module to function properly if the spurious reset on power up (I am seeing this on my board) cannot be worked around in software? Does this mean the 100 ESP32 chips i just bought are garbage? This is quite frustrating.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby ESP_igrr » Sun Nov 20, 2016 12:24 pm

RTC watchdog reset happens shortly after initial poweron, this can not be worked around. However the chip is perfectly functional after this reset. This does have impact on the startup time (i.e. the program will only boot up ~400ms after power on instead of ~60ms). The issue you seem to be having (judging from your other post) is related to the fact that after the initial RTCWDT reset the ESP32 can not load program from flash memory. I suggest that we proceed to troubleshoot that in the other topic you have opened or in the Github issue (i assume it is also opened by you).

User avatar
rudi ;-)
Posts: 1730
Joined: Fri Nov 13, 2015 3:25 pm

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby rudi ;-) » Sun Nov 20, 2016 1:36 pm

onehorse wrote:How is it possible for any ESP32 development board or module to function properly if the spurious reset on power up (I am seeing this on my board) cannot be worked around in software? Does this mean the 100 ESP32 chips i just bought are garbage? This is quite frustrating.
..
The issue you seem to be having (judging from your other post) is related to the fact that after the initial RTCWDT reset the ESP32 can not load program from flash memory. I suggest that we proceed to troubleshoot that in the other topic you have opened or in the Github issue (i assume it is also opened by you).
..
if you mean your other post

1+
i see the same like ESP_igrr wrote.

btw:
( exampl. see the startup and rst here with the last ESP-IDF )
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby WiFive » Sun Nov 20, 2016 3:59 pm

I don't see register write bug mentioned about CAN peripheral listed in document.

User avatar
rudi ;-)
Posts: 1730
Joined: Fri Nov 13, 2015 3:25 pm

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby rudi ;-) » Sun Nov 20, 2016 4:21 pm

WiFive wrote:I don't see register write bug mentioned about CAN peripheral listed in document.
Not sure is this general :
.. I'm not sure if the CAN controller is affected by this, but it may be good to keep this in mind...
perhabs we note this here for keep this in mind as a possible "workaround" :
src
if you write the registers too quickly, the 2nd write may be discarded.
This can be alleviated by putting a

Code: Select all

__asm__ __volatile__("nop;nop;nop;nop;nop;nop;nop;nop;");
line between writes, if memory serves.
and the next revision of the docu can append this then.

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

Re: ECO and Workarounds for Bugs in ESP32 18 Nov 2016

Postby ESP_Sprite » Mon Nov 21, 2016 7:59 am

The warning for the CAN peripheral actually is the same bug as of 3.3. This document suggests working around it by writing these registers through a slower bus, which in essence has the same effect as putting a bunch of nops after the write. CAN isn't mentioned explicitly here because we are not sure if it suffers from this; I put in the warning so anyone trying this out would at least be aware of the possibility of this bug happening in the CAN controller as well.

Who is online

Users browsing this forum: No registered users and 132 guests