ESP32-Wroom-32UE

pthakkar
Posts: 3
Joined: Mon Oct 07, 2024 10:43 am

ESP32-Wroom-32UE

Postby pthakkar » Mon Oct 07, 2024 10:53 am

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

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-Wroom-32UE

Postby lbernstone » Mon Oct 07, 2024 3:54 pm

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

pthakkar
Posts: 3
Joined: Mon Oct 07, 2024 10:43 am

Re: ESP32-Wroom-32UE

Postby pthakkar » Tue Oct 08, 2024 5:42 am

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
esp32_pin.png (4.78 MiB) Viewed 887 times

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-Wroom-32UE

Postby lbernstone » Tue Oct 08, 2024 4:25 pm

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.

Who is online

Users browsing this forum: No registered users and 25 guests