You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are use cases, when an UART only is needed for RX or TX to another device.
If -1 is used as an argument for the RXD or TXD in SerialX.begindefault pins are used, instead not using any GPIO for this transmit/receive direction (RXonly / TXonly UART).
The default GPIOs for Serial2 / UART2 are GPIO16 and GPIO17. This collides with the use of those pins for the SPIRAM on ESP32-WROVER.
Therefore when CONFIG_ESP32_SPIRAM_SUPPORT is set, either RX2 and TXD2 should be mapped to other GPIOs or a runtime error should be printed to the serial console.
Hardware Configuration
GPIO16 and GPIO17 are used for SPIRAM / PSRAM
Version
v2.0.2
IDE Name
IDF4.4
Operating System
irrelevant
Flash frequency
irrelevant
PSRAM enabled
yes
Upload speed
921600
Description
GPIO16 and GPIO17 are used as default GPIOs for UART2 / Serial2
Expected behaviour
-1 as parameter on RXD or TXD should lead to an TXonly or RXonly serial connection.
Or at least a warning should be printed when default GPIOs are used together with CONFIG_ESP32_SPIRAM_SUPPORT enabled.
sauttefk
changed the title
RXonly / TXonly UART use; default pins of UART2 collides with PSRAM use of GPIO16 & GPIO17; PSRAM corruption
RXonly / TXonly UART use; default pins of UART2 collide with PSRAM use of GPIO16 & GPIO17; PSRAM corruption
Mar 11, 2022
Board
ESP32-WROVER
Device Description
There are use cases, when an UART only is needed for RX or TX to another device.
If
-1
is used as an argument for the RXD or TXD inSerialX.begin
default pins are used, instead not using any GPIO for this transmit/receive direction (RXonly / TXonly UART).The default GPIOs for Serial2 / UART2 are
GPIO16
andGPIO17
. This collides with the use of those pins for the SPIRAM on ESP32-WROVER.Therefore when
CONFIG_ESP32_SPIRAM_SUPPORT
is set, eitherRX2
andTXD2
should be mapped to other GPIOs or a runtime error should be printed to the serial console.Hardware Configuration
GPIO16
andGPIO17
are used for SPIRAM / PSRAMVersion
v2.0.2
IDE Name
IDF4.4
Operating System
irrelevant
Flash frequency
irrelevant
PSRAM enabled
yes
Upload speed
921600
Description
GPIO16
andGPIO17
are used as default GPIOs for UART2 / Serial2Expected behaviour
-1
as parameter on RXD or TXD should lead to an TXonly or RXonly serial connection.Or at least a warning should be printed when default GPIOs are used together with
CONFIG_ESP32_SPIRAM_SUPPORT
enabled.Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: