Closed
Description
Board
ESP32 Dev Module
Device Description
Devkit
Hardware Configuration
Any SPI, I2c MODULES
Version
v2.0.3
IDE Name
IDF Component, Arduino IDE
Operating System
Windows 10
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
-1 pin assignment causing apps wont start:
In the Arduino world an I/O pin number of -1 is OK to signify to a function that a pin allocation is not wanted, Lots of existing arduino library written this way. Recent update causing apps wont start with repeated error as below:
[715][E][esp32-hal-gpio.c:95] __pinMode(): Invalid pin selected
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
E (285) gpio: gpio_set_level(226): GPIO output gpio_num error
Would like to know the solution regarding this issue. This issue has been raised/mentioned in multiple esp arduino library.
Thanks!
Sketch
Assign any arduino library begin method in setup() with -1 pin assignment:
example:
SPI.begin(-1,-1,-1,-1)
Debug Message
as in description.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Type
Projects
Status
Done