ESP32S: More than two SPI channels possible?

feklee
Posts: 8
Joined: Tue Oct 22, 2019 9:27 am

ESP32S: More than two SPI channels possible?

Postby feklee » Sat Nov 16, 2019 11:00 am

In a test, I was successfully able to use SPI with pins:

Code: Select all

#define GPIO_MOSI 2
#define GPIO_MISO 12
#define GPIO_SCLK 14
#define GPIO_CS 15
However, I cannot run the camera in parallel with my own SPI communication. The problem are not the pins. Pins 2, 12, 14, and 15 are not used by the camera. The problem is the following line in my code:

Code: Select all

spi_slave_initialize(HSPI_HOST, &buscfg, &slvcfg, 1);
If I switch to HSPI_HOST, then again the camera won't start. The camera uses both SPI channels, HSPI and VSPI.

Is there a third channel that I can use?

Otherwise, I'm out of luck, and I would have to switch to the ESP-EYE, which - according to my tests - allows using SPI in parallel with the camera, no problem. Only it is more expensive and more stupid to solder to a board. I need a few dozen devices.

Who is online

Users browsing this forum: MicroController and 105 guests