ESP32C3 Module SPI Slave library

srikanthr
Posts: 1
Joined: Sat Sep 23, 2023 1:53 pm

ESP32C3 Module SPI Slave library

Postby srikanthr » Sat Sep 23, 2023 2:30 pm

Hello

we are using ESP32C3 module in our custom embedded board.
In this ESP32C3 module connected to another microcontroller through SPI Configuration in same board.

We are using ESP-IDF as a developing tool and imported examples templates to this module (check the attached screenshot to reference).

We configured ESP32C3 module as a SPI slave and microcontroller as SPI master and getting data while master sends to slave.
In slave (ESP32C3 module) example we used this function( ret=spi_slave_transmit(RCV_HOST, &t, portMAX_DELAY) )to receive.
Now we are unable to send data from the slave to master. Even Master sends clocks and garbage data to slave, then also slave not sending any data (we monitor at MISO pin getting low pulse continuously even we send 0xFF).

In this library which is the right function we need call for send and receiving data from slave?

regards
srikanth
Attachments
ESP-IDF Templates.png
ESP-IDF Templates.png (21.66 KiB) Viewed 807 times

Who is online

Users browsing this forum: Bing [Bot], Gaston1980 and 112 guests