Skip to content

Serial.end() on ESP32-S2 resets the board #5429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SuGlider opened this issue Jul 20, 2021 · 0 comments · Fixed by #5434 or #5549
Closed

Serial.end() on ESP32-S2 resets the board #5429

SuGlider opened this issue Jul 20, 2021 · 0 comments · Fixed by #5434 or #5549
Assignees
Labels
Chip: ESP32-S2 Issue is related to support of ESP32-S2 Chip Type: Bug 🐛 All bugs

Comments

@SuGlider
Copy link
Collaborator

SuGlider commented Jul 20, 2021

What you are trying to do?

Use Serial.end() after calling Serial.begin(115200) using UART and CDC

Hardware:

Board: Esp32-S2 Devkit-Saola-1
Core Installation version: 2.0.0 RC1
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10

Description:

After initializing Serial UART port on ESP32-S2, when trying to end it, the board resets.

Sketch:

void setup() {
  Serial.begin(115200);
  Serial.println("Testing ... 1");
  Serial.end();
}

Debug Messages:

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4008522c
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x4b0
load:0x4004c000,len:0xa6c
load:0x40050000,len:0x25c0
entry 0x4004c198
@SuGlider SuGlider self-assigned this Jul 20, 2021
@SuGlider SuGlider added Chip: ESP32-S2 Issue is related to support of ESP32-S2 Chip Type: Bug 🐛 All bugs labels Jul 20, 2021
me-no-dev pushed a commit that referenced this issue Jul 21, 2021
me-no-dev pushed a commit that referenced this issue Aug 23, 2021
## Summary
This PR is a complete reffactoring of UART Serial Hardware and respective HAL in order to use IDF instead of current Register manipulation approach. 

It  implements Arduino SerialEvent functionality. 

Fix #5287  
Fix #5273 
Fix #5519 
Fix #5247 
Fix #5403
Fix #5429
Fix #5047
Fix #5463
Fix #5362 
Fix #5112  
Fix #5443 

## Impact
It solves many reported issues related to UART.
It was tested and works fine for ESP32, ESP-S2 and ESP32-C3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chip: ESP32-S2 Issue is related to support of ESP32-S2 Chip Type: Bug 🐛 All bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant