-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
ESP32 Dev module
Device Description
Arduino Board : ESP32_DEV
Arduino Variant : esp32
esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=huge_app,DebugLevel=verbose,PSRAM=disabled,LoopCore=0,EventsCore=0,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=default
Hardware Configuration
Nothing
Version
v3.3.2
Type
Bug
IDE Name
2.3.6
Operating System
Win11
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
Simple sketch failing with 3.3.2 ESP32 Dev module but ok with ESP32 2.0.17 or v3.3.2 DOIT ESP32 DEVKIT V1
After some delay, reboots by itself, and again, for ever with 3.3.2 ESP32 Dev module
Arduino IDE 2.3.6
Arduino ESP32 3.3.2
#include <Arduino.h>
#define SERIAL2_RXPIN 16
#define SERIAL2_TXPIN 17
void setup() {
Serial.begin(115200);
Serial.println("Serial2 begin");
Serial1.begin(115200, SERIAL_8N1, SERIAL2_RXPIN, SERIAL2_TXPIN);
}
void loop() {
while (Serial2.available())
Serial.write(Serial2.read());
}
With ESP32 dev module crash and reboot:
Board Info:
Arduino Board : ESP32_DEV
Arduino Variant : esp32
Arduino FQBN : esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=huge_app,DebugLevel=verbose,PSRAM=disabled,LoopCore=0,EventsCore=0,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=default
============ Before Setup End ============
[ 516][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 3 successfully set to type UART_RX (2) with bus 0x3ffbdb60
[ 527][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x400d2e24
[ 540][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 1 successfully set to type UART_TX (3) with bus 0x3ffbdb60
[ 553][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x400d2df4
[ 567][V][esp32-hal-uart.c:715] uartBegin(): UART0 baud(115200) Mode(800001c) rxPin(3) txPin(1)
[ 577][V][esp32-hal-uart.c:813] uartBegin(): UART0 not installed. Starting installation
[ 587][V][esp32-hal-uart.c:823] uartBegin(): UART0 RX FIFO full threshold set to 120 (value requested: 120 || FIFO Max = 128)
[ 601][V][esp32-hal-uart.c:853] uartBegin(): Setting UART0 to use REF_TICK clock
[ 611][V][esp32-hal-uart.c:906] uartBegin(): UART0 initialization done.
[ 626][V][esp32-hal-uart.c:957] uartSetRxFIFOFull(): UART0 RX FIFO Full value set to 120 from a requested value of 120
Serial2 begin
[ 636][V][esp32-hal-uart.c:715] uartBegin(): UART1 baud(115200) Mode(800001c) rxPin(16) txPin(17)
[ 646][V][esp32-hal-uart.c:813] uartBegin(): UART1 not installed. Starting installation
[ 654][V][esp32-hal-uart.c:823] uartBegin(): UART1 RX FIFO full threshold set to 120 (value requested: 120 || FIFO Max = 128)
[ 666][V][esp32-hal-uart.c:853] uartBegin(): Setting UART1 to use REF_TICK clock
[ 673][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_RX (2) with bus 0x3ffbdb80
[ 684][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_TX (3) with bus 0x3ffbdb80
[ 694][V][esp32-hal-uart.c:906] uartBegin(): UART1 initialization done.
[ 701][V][esp32-hal-uart.c:957] uartSetRxFIFOFull(): UART1 RX FIFO Full value set to 120 from a requested value of 120
=========== After Setup Start ============
INTERNAL Memory Info:
Total Size : 379396 B ( 370.5 KB)
Free Bytes : 333772 B ( 325.9 KB)
Allocated Bytes : 37900 B ( 37.0 KB)
Minimum Free Bytes: 327844 B ( 320.2 KB)
Largest Free Block: 110580 B ( 108.0 KB)
GPIO Info:
GPIO : BUS_TYPE[bus/unit][chan]
1 : UART_TX[0]
3 : UART_RX[0]
16 : UART_RX[1]
17 : UART_TX[1]
============ After Setup End =============
With DOIT ESP32 DEVKIT V1
all ok
With ESP32 v2.0.17
all ok
Huh ???
Sketch
#include <Arduino.h>
#define SERIAL2_RXPIN 16
#define SERIAL2_TXPIN 17
void setup() {
Serial.begin(115200);
Serial.println("Serial2 begin");
Serial1.begin(115200, SERIAL_8N1, SERIAL2_RXPIN, SERIAL2_TXPIN);
}
void loop() {
while (Serial2.available())
Serial.write(Serial2.read());
}Debug Message
------------------------------------------
Board Info:
------------------------------------------
Arduino Board : ESP32_DEV
Arduino Variant : esp32
Arduino FQBN : esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=huge_app,DebugLevel=verbose,PSRAM=disabled,LoopCore=0,EventsCore=0,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=default
============ Before Setup End ============
[ 516][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 3 successfully set to type UART_RX (2) with bus 0x3ffbdb60
[ 527][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x400d2e24
[ 540][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 1 successfully set to type UART_TX (3) with bus 0x3ffbdb60
[ 553][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x400d2df4
[ 567][V][esp32-hal-uart.c:715] uartBegin(): UART0 baud(115200) Mode(800001c) rxPin(3) txPin(1)
[ 577][V][esp32-hal-uart.c:813] uartBegin(): UART0 not installed. Starting installation
[ 587][V][esp32-hal-uart.c:823] uartBegin(): UART0 RX FIFO full threshold set to 120 (value requested: 120 || FIFO Max = 128)
[ 601][V][esp32-hal-uart.c:853] uartBegin(): Setting UART0 to use REF_TICK clock
[ 611][V][esp32-hal-uart.c:906] uartBegin(): UART0 initialization done.
[ 626][V][esp32-hal-uart.c:957] uartSetRxFIFOFull(): UART0 RX FIFO Full value set to 120 from a requested value of 120
Serial2 begin
[ 636][V][esp32-hal-uart.c:715] uartBegin(): UART1 baud(115200) Mode(800001c) rxPin(16) txPin(17)
[ 646][V][esp32-hal-uart.c:813] uartBegin(): UART1 not installed. Starting installation
[ 654][V][esp32-hal-uart.c:823] uartBegin(): UART1 RX FIFO full threshold set to 120 (value requested: 120 || FIFO Max = 128)
[ 666][V][esp32-hal-uart.c:853] uartBegin(): Setting UART1 to use REF_TICK clock
[ 673][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_RX (2) with bus 0x3ffbdb80
[ 684][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_TX (3) with bus 0x3ffbdb80
[ 694][V][esp32-hal-uart.c:906] uartBegin(): UART1 initialization done.
[ 701][V][esp32-hal-uart.c:957] uartSetRxFIFOFull(): UART1 RX FIFO Full value set to 120 from a requested value of 120
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
Total Size : 379396 B ( 370.5 KB)
Free Bytes : 333772 B ( 325.9 KB)
Allocated Bytes : 37900 B ( 37.0 KB)
Minimum Free Bytes: 327844 B ( 320.2 KB)
Largest Free Block: 110580 B ( 108.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
GPIO : BUS_TYPE[bus/unit][chan]
--------------------------------------
1 : UART_TX[0]
3 : UART_RX[0]
16 : UART_RX[1]
17 : UART_TX[1]
============ After Setup End =============
Other Steps to Reproduce
Simply upload and watch serial console
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.