-
Notifications
You must be signed in to change notification settings - Fork 7.6k
pinMode() on pin 13 causes watchdog reset and CPU freezes afterwards! #801
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
Same issue on pin 6 and 7. Error Log:
|
@Adonizer pins 6-11 are used by the flash chip. can not use them. @vishnumaiea that is rather really strange! I am currently using pin13 for many things. Is it possible that there is something wrong with the board/module? |
@me-no-dev Not sure if it's a hardware problem. Couldn't find anything wrong with the hardware after initial inspection. I do not have another board to test this. May be I'll seek some help from my friends to check the same. @Adonizer Also, GPIOs 34 to 39 can only be used as INPUTs. |
@vishnumaiea part of this issue is similar to: #796 My guess is that there is something broken after commit 55289a4 that when the board reset so often it stuck in the start (with any code) Could you test it with an old core version, like https://github.com/espressif/arduino-esp32/tree/95123681d5340defa24472e441758fba88e3a34f ? |
@copercini Will try that. |
Is this issue still relevant? @vishnumaiea Can you close it pls, if not? |
The cause of the problem is suspected to be the hardware bugs associated with revision 0 of the ESP32 chip (https://www.espressif.com/sites/default/files/documentation/eco_and_workarounds_for_bugs_in_esp32_en.pdf). This issue was not found in revision 1 chips when tested. |
Hi! i'm working on an esp32 Revision 1 and i got the same problem when trying to set gpio13 as output through pinMode().
in my code i'm just using the serial port and two pwm channels:
anyone got the same problem and/or a solution? |
Hardware:
Board: NodeMCU-32S
USB Chip: CH340G
Core Installation/update date: A week ago
IDE name: Arduino IDE 1.8.5
CPU Frequency: 240MHz
Flash Frequency: 80Mhz
Upload Speed: 921600
OS: Windows 7 64bit
Power Source: USB
Description:
I'm trying to interface a 3.2" TFT LCD display to ESP32 (NodeMCU-32S). I need 8 + 4 pins for parallel interface. So defined the pins and set all of them as OUPUT using the pinMode() in setup() function. The code compiles and uploads successfully. But as soon as the execution reaches the pinMode() function, the system gets reset and after a few resets, the CPU freezes. You can see in the serial output window that the next event after printing the "Initializing..." message is a reset. The loop() function never gets executed after the reset (obviously).
If I comment out the pinMode() line, everything works fine.
Update (5:59PM, 01-11-2017): Apparently, this only happens when trying to set pin 13. It works fine for all other pins.
Sketch:
A part of the code is given below
Serial output:
Build console output when uploading:
The text was updated successfully, but these errors were encountered: