ESP32-S3 Octal (8-bit) SPI (master) transmission does not work

faptastic
Posts: 15
Joined: Mon Nov 14, 2022 10:38 pm

ESP32-S3 Octal (8-bit) SPI (master) transmission does not work

Postby faptastic » Mon Jan 01, 2024 7:37 pm

Please delete thread. Figured out issue.
Last edited by faptastic on Tue Jan 02, 2024 5:33 pm, edited 2 times in total.

MicroController
Posts: 2694
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32-S3 Octal (8-bit) SPI (master) transmission does not work

Postby MicroController » Mon Jan 01, 2024 9:36 pm

Code: test.c Select all



spi_bus_config_t buscfg = {
.data0_io_num = -1,
.data1_io_num = -1,
.sclk_io_num = -1, // TEMP
.data2_io_num = -1,
.data3_io_num = 5, // this and data2, data1, data0 and sclk work.
.data4_io_num = 1, // this doesn't work (nor does data5+)
.data5_io_num = -1,
.data6_io_num = -1,
.data7_io_num = -1,
.max_transfer_sz = 512, // ESP32 S3 max size is 64Kbytes
.flags = 0,
.intr_flags = 0
};
What are the actual GPIO pin numbers you're trying to use?

faptastic
Posts: 15
Joined: Mon Nov 14, 2022 10:38 pm

Re: ESP32-S3 Octal (8-bit) SPI (master) transmission does not work

Postby faptastic » Mon Jan 01, 2024 11:24 pm

Edit: Figured out issue.

I was setting the SPICOMMON_BUSFLAG_OCTAL flag to the 'devcfg' not 'buscfg'. Facepalm

Who is online

Users browsing this forum: Google [Bot], PetalBot and 1 guest