Search found 27 matches
- Fri May 24, 2024 12:08 pm
- Forum: ESP-IDF
- Topic: Can't get quad SPI work on the slave side, ESP32-S3
- Replies: 0
- Views: 546
Can't get quad SPI work on the slave side, ESP32-S3
I have two ESP32-S3s connected to each other and I'm trying to send data from one to the other. I have verified with the oscilloscope that the master side is sending the data correctly on all four data lines and SCK/CS. After that I configured the slave like this: typedef struct SPI_settings_s{ spi_...
- Mon Mar 25, 2024 8:31 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1615
Re: SPI signal @16MHz looks terrible
I was hoping for 40Mhz, so yes, 16MHz is a bare minimum.
- Mon Mar 25, 2024 1:42 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1615
Re: SPI signal @16MHz looks terrible
It's ok, found it, gpio_set_drive_capability. It helped a bit.
- Mon Mar 25, 2024 12:21 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1615
Re: SPI signal @16MHz looks terrible
How can I do that?
- Mon Mar 25, 2024 8:42 am
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1615
Re: SPI signal @16MHz looks terrible
OK, I've shortened the length of wires by half and now it looks better. Still far from perfect, but I guess it will be fine when all components are on one PCB.
If anybody have any suggestions on still improving the signal, it would be much appreciated.
If anybody have any suggestions on still improving the signal, it would be much appreciated.
- Mon Mar 25, 2024 7:54 am
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1615
SPI signal @16MHz looks terrible
I've created dual SPI @16MHz, connected it's output to the controller itself, pins declared as inputs. I've connected SCK and MOSI to oscilloscope and the signal looks awful. I haven't tried to receive SPI message yet, but it's hardly going to work if it looks that bad. The connection wires are with...
- Wed Mar 20, 2024 8:29 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 932
Re: Dual SPI Master/Slave on esp32s3
Finally got it. What I needed to define was flags in spi_device_interface_config_t used in spi_bus_add_device(SPI_settings.host, &SPI_settings.devcfg, &SPI_settings.spi) .devcfg = { .command_bits = 0, .address_bits = 0, .mode = 0, //SPI mode 0 .clock_speed_hz = SPI_MASTER_FREQ_40M .spics_io_num = 10...
- Wed Mar 20, 2024 6:25 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 932
Re: Dual SPI Master/Slave on esp32s3
It seems dual is not working at all? I tried different flags, like .flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_GPIO_PINS | SPICOMMON_BUSFLAG_SCLK | SPICOMMON_BUSFLAG_DUAL | SPI_DEVICE_HALFDUPLEX Ever time the error is the same: E (183) spi_master: check_trans_valid(704): Incompatible when ...
- Wed Mar 20, 2024 6:00 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 932
Re: Dual SPI Master/Slave on esp32s3
I get error 258, which is invalid argument. Tried SPI_TRANS_MODE_QIO as well, the same error. When it's commented out, no error and output is present. I have two different ESP32S3 boards, the same problem on both.
Any suggestion?
Any suggestion?
- Wed Mar 20, 2024 5:53 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 932
Re: Dual SPI Master/Slave on esp32s3
OK, I've increased task cache (I got stack cannary watchpoint triggered) and no more error, but ... nothing is being transfered. No oscilloscope signal, even on SCK. I'll check if there is an error code when starting SPI transfer.