-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Core 0 Panic when reassigning Serial2 GPIO pins #5519
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
Comments
You should have filled the issue template fully. It is not clear what version of ESP32-Arduino you are running and you have not decoded the backtrace. You should try this with 2.0.0-rc1, because it already contains a few fixes for Serial.begin issues |
Sorry me-no-dev, i've updated with the required information and i'll add the decoded backtrace tonight when i'm back in front of the computer. |
I'm also seeing this with a very simple example: My ESP 32 Panics and Reboots as soon as it hits the SerialTwo.begin line, I'm mapping my Serial lines to PINS 6 & 7 as per this diagram: As the devkit 1/doit board is the one I have. My ESP32 is just caught in a panic/reboot loop. If I comment out the SerialTwo.begin line and reboot, everything works as expected with the normal Serial1 object. |
@shawty Pins 6/7 are flash pins and as you can see you dont even have them on this devkit. |
@chegewara oh for flips sake, I just realised what I was doing (Ironically something I'm good at... 'being a muppet'), I counted the pin numbers up the side of the board starting from the lower right (Where the 3.3v is) when what I should have looked at are the "GPIO Numbers" So 6/7 6th & 7th one up from the lower right... I'll go give myself a good slap now... If this had been a PICMicro I would have been fine, dunno why I brain flipped like that! |
I tested the sketch presented in this issue with core version 2.0.0 RC1. The issue is related to Arduino Core v1.0.6 and it is solved in newer version 2.0.0. |
Yes, it is solved with 2.0.0-rc1. |
## 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.
Hardware:
Board: ESP32-WROOM-32U
Core Installation version: 1.0.6 (pio version 3.3.1)
IDE name: Platform.io
Flash Frequency: 40Mhz
PSRAM enabled: Yes
Upload Speed: 115200
Computer OS: Windows 10
Description:
I'm currently trying to reassign Serial2 on an ESP32 custom development board between GPIO pins 14,22 and 2,32.
I need to be able to do this multiple times in a sketch to talk to two channels of sensors via modbus.
The below sketch however crashes with a Core 0 panic after some number of changes.
Sketch: (leave the backquotes for code formatting)
Debug Messages:
Decoded Backtrace:
The text was updated successfully, but these errors were encountered: