Esp32 Errata en
Esp32 Errata en
Errata
Version 2.6
Espressif Systems
Copyright © 2023
www.espressif.com
About This Document
This document details hardware errata and workarounds in the ESP32.
Release Notes
2023-02-02 v2.6 Removed hall sensor from Section 3.11 according to PCN
Documentation Change Notification
Certification
Download certificates for Espressif products from www.espressif.com/en/certificates.
Table of Contents
1. Chip Revision Identification ..................................................................................................1
3.2. When the CPU accesses external SRAM through cache, under certain conditions read and
write errors occur. ......................................................................................................................5
3.3. When the CPU accesses peripherals and writes a single address repeatedly, some writes
may be lost. ................................................................................................................................6
3.4. The Brown-out Reset (BOR) function does not work. The system fails to boot up after BOR. .7
3.5. The CPU crashes when the clock frequency switches directly from 240 MHz to 80/160 MHz. 7
3.6. GPIO pull-up and pull-down resistors for pads with both GPIO and RTC_GPIO functionality
can only be controlled via RTC_GPIO registers. ........................................................................7
3.8. Due to the flash start-up time, a spurious watchdog reset occurs when ESP32 is powered up
or wakes up from Deep-sleep. ...................................................................................................8
3.9. When the CPU accesses the external SRAM in a certain sequence, read & write errors may
occur. .........................................................................................................................................9
3.10. When each CPU reads certain different address spaces simultaneously, a read error may
occur. .......................................................................................................................................10
3.11. When certain RTC peripherals are powered on, the inputs of GPIO36 and GPIO39 will be
pulled down for approximately 80 ns. ......................................................................................10
3.12. When the LEDC is in decremental fade mode, a duty overflow error may occur. ...................10
3.13.1. Receive Error Counter (REC) is allowed to change whilst in reset mode or bus-off
recovery. .....................................................................................................................11
3.13.2. Error status bit is not frozen during bus-off recovery. ................................................11
3.13.4. Reading the interrupt register may lead to a transmit interrupt being lost. ................12
3.13.5. Receiving an erroneous data frame can cause the data bytes of the next received
data frame to be invalid. .............................................................................................12
3.13.6. After losing arbitration, a dominant bit on the 3rd bit of intermission is not interpreted
as an SOF. ...................................................................................................................13
3.13.7. When the 8th bit of the error delimiter is dominant, the error passive state is not
entered. .......................................................................................................................13
3.13.9. When a stuff error occurs during arbitration whilst being transmitter, any errors in the
subsequent error/overload frame will not increase the TEC. ......................................14
3.13.10.A negative phase error where |e| > SJW(N) will cause the remaining transmitted bits
to be left shifted. .........................................................................................................14
3.13.11.When the RX FIFO overruns with 64 or more messages, the RX FIFO becomes
unrecoverable. ............................................................................................................14
3.14. The ESP32 GPIO peripheral may not trigger interrupts correctly. ...........................................15
3.15. The ESP32 chip may have a live lock under certain conditions that will cause interrupt
watchdog issue. .......................................................................................................................15
3.16. There are limitations to the CPU access to 0x3FF0_0000 ~ 0x3FF1_EFFF and 0x3FF4_0000
~ 0x3FF7_FFFF address spaces. .............................................................................................16
3.19. ULP coprocessor and touch sensors can not be used during Deep-sleep when RTC_PERIPH
power domain is up. .................................................................................................................18
1. Chip Revision Identification
v0.0 0 0 0 0 0
v1.0 0 0 0 0 1
v1.1 0 1 0 0 1
v3.0 0 0 1 1 1
v3.1 0 1 1 1 1
📖 Note:
- Chip revision v1.1 and v3.1 are optimized to target for more complex high temperature scenarios.
- For the design changes in chip revision v3.0, see ESP32 Chip Revision v3.0 User Guide.
- For more information about chip revision numbering scheme, see Compatibility Advisory for Chip
Revision Numbering Scheme.
- Information about ESP-IDF release that supports a specific chip revision is provided in ESP Product
Selector.
v1.0 xBxxxxxx
v1.1 xFxxxxxx
v3.0 xExxxxxx
v3.1 xGxxxxxx
📖 Note:
The figure below shows the relation between chip revisions and chip variants.
2. Errata List
Table 2-1. Errata Summary
Affected Revisions
Section Title
v0.0 v1.0 v1.1 v3.0 v3.1
Section When the CPU accesses external SRAM through cache, under
Y
3.2 certain conditions read and write errors occur.
Section When the CPU accesses peripherals and writes a single address
Y
3.3 repeatedly, some writes may be lost.
Section The Brown-out Reset (BOR) function does not work. The system
Y
3.4 fails to boot up after BOR.
Section The CPU crashes when the clock frequency switches directly
Y
3.5 from 240 MHz to 80/160 MHz.
GPIO pull-up and pull-down resistors for pads with both GPIO
Section
and RTC_GPIO functionality can only be controlled via Y Y Y Y Y
3.6
RTC_GPIO registers.
Section
Audio PLL frequency range is limited. Y
3.7
Section Due to the flash start-up time, a spurious watchdog reset occurs
Y Y Y
3.8 when ESP32 is powered up or wakes up from Deep-sleep.
Section
ESP32 TWAI Errata
3.13
Section
Error status bit is not frozen during bus-off recovery. Y Y Y Y Y
3.13.2
Section
Message transmitted after bus-off recovery is erroneous. Y Y Y Y Y
3.13.3
Affected Revisions
Section Title
v0.0 v1.0 v1.1 v3.0 v3.1
Section Receiving an erroneous data frame can cause the data bytes of
Y Y Y Y Y
3.13.5 the next received data frame to be invalid.
Section When the 8th bit of the error delimiter is dominant, the error
Y Y Y Y Y
3.13.7 passive state is not entered.
Section
Suspend transmission is included even after losing arbitration. Y Y Y Y Y
3.13.8
Section A negative phase error where |e| > SJW(N) will cause the
Y Y Y Y Y
3.13.10 remaining transmitted bits to be left shifted.
Section
The ESP32 GPIO peripheral may not trigger interrupts correctly. Y Y Y Y Y
3.14
Section The ESP32 chip may have a live lock under certain conditions
Y Y
3.15 that will cause interrupt watchdog issue.
Section
UART fifo_cnt is inconsistent with FIFO pointer. Y Y Y Y Y
3.17
Section
CPU has limitations when accessing peripherals in chips. Y Y Y Y Y
3.18
Section ULP coprocessors and touch sensors can not be used during
Y Y Y Y Y
3.19 Deep-sleep when RTC_PERIPH power domain is up.
3.2. When the CPU accesses external SRAM through cache, under
certain conditions read and write errors occur.
Details:
Access to external SRAM through cache will cause read and write errors if these operations
are pipelined together by the CPU.
Workarounds:
There is no automatic workaround available in software.
Workaround Details:
If accessing external SRAM from chip revision v0.0, users must ensure that access is
always one-way—only a write or a read can be in progress at a single time in the CPU
pipeline.
The MEMW instruction can be used: insert __asm__("MEMW") after any read from external
PSRAM that may be followed by a write to PSRAM before the CPU pipeline is flushed.
Fixes:
This issue is fixed in chip revision v1.0.
Fixes:
This issue is fixed in chip revision v1.0.
⚠ Notice:
3.4. The Brown-out Reset (BOR) function does not work. The
system fails to boot up after BOR.
Workarounds:
There is no workaround for this issue.
Fixes:
This issue is fixed in chip revision v1.0.
3.5. The CPU crashes when the clock frequency switches directly
from 240 MHz to 80/160 MHz.
Workarounds:
This issue is automatically worked around in ESP-IDF v2.1 and newer.
Workaround Details:
When switching frequencies, use intermediate frequencies as follows:
(1) 2 MHz <-> 40 MHz <-> 80 MHz <-> 160 MHz
(2) 2 MHz <->40 MHz <->240 MHz
Fixes:
This issue is fixed in chip revision v1.0.
3.6. GPIO pull-up and pull-down resistors for pads with both GPIO
and RTC_GPIO functionality can only be controlled via
RTC_GPIO registers.
Details:
For these pads, the GPIO pull-up and pull-down configuration register fields are non-
functional.
Workarounds:
This issue is automatically worked around when using GPIO drivers in ESP-IDF v2.1 or
newer.
Workaround Details:
Use RTC_GPIO registers for both GPIO and RTC_GPIO functions.
For chip revision v1.0 onwards this bug is fixed and the Audio PLL frequency is calculated
in hardware as follows:
sdm1 sdm0
fxtal(sdm2+ 8 + + 4)
2 216
fout =
2(odiv+2)
Workarounds:
The particular hardware frequency calculation is automatically accounted for when setting
Audio PLL frequency via the I2S driver in ESP-IDF v3.0 and newer. However, the range and
precision of available Audio PLL frequencies is still limited when using chip revision v0.0.
Fixes:
This issue is fixed in chip revision v1.0.
Workarounds:
1. Replace the flash chip with one with a fast start-up time (<800 μs from power-on to
ready to read). This works around the issue for both power-on and wake from Deep-
sleep.
2. When waking from Deep-sleep, this issue is automatically worked around in ESP-IDF
v2.0 and newer (the delay to wait can be configured if necessary). In this workaround,
the CPU executes from RTC fast memory immediately after waking and a delay is added
before continuing to read the program from flash.
Fixes:
This issue is fixed in chip revision v3.0.
Workarounds:
This bug is automatically worked around when external SRAM use is enabled in ESP-IDF
v3.0 and newer.
Workaround Details:
• When x>=y, insert four nop instructions between store.x and load.y.
• When x <y, insert a memw instruction between store.x and load.y.
Fixes:
This issue is fixed in chip revision v3.0.
3.11. When certain RTC peripherals are powered on, the inputs of
GPIO36 and GPIO39 will be pulled down for approximately 80
ns.
Details:
Powering on the following RTC peripherals will trigger this issue:
• SAR ADC1
• SAR ADC2
• AMP
Workarounds:
When enabling power for any of these peripherals, ignore input from GPIO36 and GPIO39.
Workarounds:
When undergoing bus-off recovery, an error warning interrupt does not necessarily indicate
the completion of recovery. Users should check the STATUS_NODE_BUS_OFF bit to verify
whether bus-off recovery has completed.
3.13.4. Reading the interrupt register may lead to a transmit interrupt being lost.
Details:
The TWAI controller's interrupt signals are cleared by reading the INTERRUPT_REG.
However, if a transmit interrupt occurs whilst the INTERRUPT_REG is being read (i.e., in the
same APB clock cycle), the transmit interrupt is lost.
Workarounds:
When a message is awaiting completion of transmission (i.e., transmission has been
requested), users should also check the STATUS_TRANSMIT_BUFFER bit each time the
INTERRUPT_REG is read. A set STATUS_TRANSMIT_BUFFER bit whilst the
TWAI_TRANSMIT_INT_ST is not indicates a lost transmit interrupt.
3.13.5. Receiving an erroneous data frame can cause the data bytes of the next received
data frame to be invalid.
Details:
When the TWAI controller is receiving a data frame and a bit or stuff error occurs in the data
or CRC fields, some data bytes of the next received data frame may be shifted or lost.
Therefore, the next received data frame (including those filtered out by the acceptance filter)
should be considered invalid.
Workarounds:
Users can detect the errata triggering condition (i.e., bit or stuff error in the data or CRC
field) by setting the INTERRUPT_BUS_ERR_INT_ENA and checking the
ERROR_CODE_CAPTURE_REG when a bus error interrupt occurs. If the errata condition is
met, the following workarounds are possible:
• The TWAI controller can transmit a dummy frame with 0 data bytes to reset the
controller’s internal signals. It is advisable to select an ID for the dummy frame that
can be filtered out by all nodes on the TWAI bus.
• Hardware reset the TWAI controller (will require saving and restoring the current
register values).
3.13.6. After losing arbitration, a dominant bit on the 3rd bit of intermission is not
interpreted as an SOF.
Details:
The CAN2.0B protocol stipulates that a dominant bit on the 3rd bit of intermission shall be
interpreted as a Start of Frame (SOF). Therefore, nodes shall begin receiving or transmitting
(i.e., competing for arbitration) the ID field on the next bit.
When the TWAI controller loses arbitration and the following intermission’s 3rd bit is
dominant, the TWAI controller will not interpret this as an SOF and will make no attempt to
compete for arbitration (i.e., does not retransmit its frame).
Workarounds:
There is no workaround for this issue.
3.13.7. When the 8th bit of the error delimiter is dominant, the error passive state is not
entered.
Details:
When the TWAI controller is the transmitter and has a TEC value between 120 and 127,
transmitting an error frame will increment its TEC by 8 thus make the controller error
passive (due to TEC becoming >= 128). However, if the 8th bit of the error delimiter is
dominant, the TEC will still increment by 8 but the controller will not become error passive.
Instead, the controller will become error passive when another error frame is transmitted.
Note that the controller will still generate the required overload frame due to the dominant
8th bit.
Workarounds:
There is no workaround for this issue.
Workarounds:
There is no workaround for this issue.
3.13.9. When a stuff error occurs during arbitration whilst being transmitter, any errors in
the subsequent error/overload frame will not increase the TEC.
When a stuff error occurs during arbitration whilst being transmitter, the CAN2.0B protocol
stipulates that an error frame be transmitted but the TEC should not increase (Exception 2
of Rule 3). The TWAI controller is able to fulfill these requirements without issue.
However, errors within the subsequent error/overload frames themselves will fail to increase
the TWAI controller’s TEC. Therefore, when a stuff error occurs during arbitration whilst
being transmitter, the TEC will fail to increase in the following cases:
• Bit error in an active error flag or overload flag (Rule 4).
• Detecting too many dominant bits after the transmission of active error, passive error
flag, and overload flags (Rule 6).
Workarounds:
There is no workaround for this issue.
3.13.10.A negative phase error where |e| > SJW(N) will cause the remaining transmitted bits
to be left shifted.
Details:
When the TWAI controller encounters a recessive to dominant edge with a negative phase
error (i.e., the edge is early), it will correct for the phase error using resynchronization as
required by the CAN2.0B protocol. However, if the TWAI controller is acting as transmitter
and encounters a negative phase error where e < 0 and |e| > SJW, the bits transmitted
following the phase error will be left shifted by one bit. Thus, the transmitted frame's
contents (i.e., DLC, data bytes, CRC sequence) will be corrupted.
Workarounds:
There is no workaround for this issue.
3.13.11.When the RX FIFO overruns with 64 or more messages, the RX FIFO becomes
unrecoverable.
Details:
When the RX FIFO overruns with multiple messages, and the RX message counter reaches
64, the RX FIFO will become unrecoverable. Any message read from the RX FIFO will be
invalid. Attempting to release a message from the RX FIFO will have no effect.
Workarounds:
The TWAI controller must be reset by software in order to recover the RX FIFO. This issue is
automatically worked around in ESP-IDF v4.3 and newer.
3.15. The ESP32 chip may have a live lock under certain conditions
that will cause interrupt watchdog issue.
Details:
On ESP32 chip revision v3.0, when the following conditions are met at the same time, a live
lock will occur, causing the CPUs to get stuck in the state of memory access and stop
executing instructions.
1. Dual-core system.
2. Of the four Instruction/Data buses (IBUS/DBUS) that access external memory, three
simultaneously initiate access requests to the same cache set, and all three requests
result in cache misses.
Workarounds:
When a live lock occurs, software proactively or passively recognizes and unlocks the
cache line contention, and then the two cores complete their respective cache operations
one after another, following a first-come, first-served policy, to resolve the live lock. The
detailed process is as follows:
1. If the live lock occurs when the instructions executed by the two cores are not in the
critical section of the code, the various types of system interruptions will proactively
release the cache line competition and resolve the live lock.
2. If the live lock occurs when the instructions executed by the two cores are located in
the critical section of the code, the system will mask interrupts at level 3 and below.
Therefore, software needs to set up a high priority (level 4 or 5) interrupt for each core
in advance, connect the interrupts to the same timer, and configure an appropriate
timeout threshold. The timer timeout interrupt generated by the live lock will force
both cores to enter the high-priority interrupt handler, thereby releasing the IBUS of
both cores to resolve the live lock. The live lock resolution process is completed in
three stages:
(a) In the first stage, both cores wait for the CPU write buffer to be cleared.
(b) In the second stage, one core (Core 0) waits and the other core (Core 1)
executes instructions.
(c) In the third stage, Core 1 waits and Core 0 executes instructions.
2. When the CPU frequency is 160 MHz, add six “nop” between two consecutive FIFO
reads. When the CPU frequency is 240 MHz, add seven “nop” between two
consecutive FIFO reads.
Workarounds:
When using DPORT to read FIFO, please calculate the number of bytes according to the
value of FIFO pointer.
Write ✔ ✔
0x3FF0_0000 ~
Non-FIFO
0x3FF1_EFFF and Read ✖ (See 3.10) ✔
0x3FF4_0000 ~
0x3FF7_FFFF Write ✖ (See 3.3) ✔
FIFO
(DPORT)
Read ✔ ✔
Write ✔
Non-FIFO
Read ✔
0x6000_0000 ~
0x6003_FFFF (AHB) Write ✔
FIFO
Read ✖ (No such feature, unpredictable results)
Legend
✖ - operation fails
3.19. ULP coprocessor and touch sensors can not be used during
Deep-sleep when RTC_PERIPH power domain is up.
Details:
FAST_CLK is the main working clock for ULP coprocessor and touch sensors. But if RTC_PERIH
power domain is powered on, the ULP coprocessor and touch sensors will receive the startup signal
earlier than the clock management module, which causes the ULP coprocessor and touch sensors
working under SLOW_CLK for a period of time, resulting in inaccurate working clock.
Workarounds:
There is no workaround for this issue.