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: 1726
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

faptastic wrote:
Mon Jan 01, 2024 7:37 pm
  1.  
  2.     spi_bus_config_t buscfg = {
  3.         .data0_io_num = -1,
  4.         .data1_io_num = -1,
  5.         .sclk_io_num = -1, // TEMP
  6.         .data2_io_num = -1,
  7.         .data3_io_num = 5, // this and data2, data1, data0 and sclk work.
  8.         .data4_io_num = 1, // this doesn't work (nor does data5+)
  9.         .data5_io_num = -1,
  10.         .data6_io_num = -1,
  11.         .data7_io_num = -1,
  12.         .max_transfer_sz = 512, // ESP32 S3 max size is 64Kbytes
  13.         .flags = 0,
  14.         .intr_flags = 0
  15.     };
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: Majestic-12 [Bot] and 146 guests