Hi... I am trying to use ESP32-Wroom-32UE module for my development. In the data sheet the pins 17-22 are used for connecting the SPI flash. So can I use pins 6-12 as GPIOs?
The issue I am facing is that the controller keeps on resetting at the following point:
#define IO26 11
#define MOTOR_PIN_1 IO26
pinMode(MOTOR_PIN_1, OUTPUT); - the controller resets executing this line ...
Thanks and Regards
ESP32-Wroom-32UE
-
- Posts: 832
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32-Wroom-32UE
No, the main spi flash is on pins 6-11. Those should not be used. There are 2 SPI (HSPI&VSPI) busses available for user access.
https://docs.espressif.com/projects/esp ... layout.png
https://github.com/espressif/arduino-es ... pinmap.png
https://docs.espressif.com/projects/esp ... layout.png
https://github.com/espressif/arduino-es ... pinmap.png
Re: ESP32-Wroom-32UE
Hi.. Thanks for the information....Just to be sure that I am able to convey myself properly I am talking abt GPIO32,33, 26 and 27 which are connected to PIN No 8,9,11,12 respectively... also marked in the pic attched...
- Attachments
-
- esp32_pin.png (4.78 MiB) Viewed 1066 times
-
- Posts: 832
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32-Wroom-32UE
Don't use "pin numbers", those only matter to the eCAD program you are using. On the software side, we will always use gpio numbers to avoid this confusion.
The boot flash uses gpio 6-11, whatever pins those may correspond to (or even if it is on-chip and there are no pins).
The other SPI busses can be routed to whatever pins you like. The pins for the default bus (HSPI) are defined in the variants file.
Defining IO26 to correspond to some physical chip pin number is sure to get you hopelessly confused, since they are subject to change on newer ICs.
The boot flash uses gpio 6-11, whatever pins those may correspond to (or even if it is on-chip and there are no pins).
The other SPI busses can be routed to whatever pins you like. The pins for the default bus (HSPI) are defined in the variants file.
Defining IO26 to correspond to some physical chip pin number is sure to get you hopelessly confused, since they are subject to change on newer ICs.
Who is online
Users browsing this forum: No registered users and 33 guests