Page 1 of 1

ESP32-Wroom-32UE

Posted: Mon Oct 07, 2024 10:53 am
by pthakkar
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

Re: ESP32-Wroom-32UE

Posted: Mon Oct 07, 2024 3:54 pm
by lbernstone
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

Re: ESP32-Wroom-32UE

Posted: Tue Oct 08, 2024 5:42 am
by pthakkar
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...

Re: ESP32-Wroom-32UE

Posted: Tue Oct 08, 2024 4:25 pm
by lbernstone
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.