Search found 3 matches

by paul719
Tue Jul 10, 2018 8:23 am
Forum: ESP-IDF
Topic: [SPI Slave] lost rx_buffer data after spi_slave_transmit
Replies: 3
Views: 5698

Re: [SPI Slave] lost rx_buffer data after spi_slave_transmit

the master gives a good MOSI signal as shown in Fig:
mosi.png
mosi.png (212.3 KiB) Viewed 5659 times
after spi_slave_transmit, the rx buffer data is shown througt debug uart.
uart.png
uart.png (5.97 KiB) Viewed 5659 times
The last 2 byte in rx buffer is 0xA5 which is the initial value, but the correct value should be 0x03 0xA3.
by paul719
Mon Jul 09, 2018 9:06 am
Forum: ESP-IDF
Topic: [SPI Slave] lost rx_buffer data after spi_slave_transmit
Replies: 3
Views: 5698

[SPI Slave] lost rx_buffer data after spi_slave_transmit

we set esp32 as a SPI Slave Device, and call spi_slave_transmit to receive data. But we found the receive buffer lost last 2~3 bytes after each successful transmit. I just modified the example project in ESP32-IDF\examples\peripherals\spi_slave\receiver for receiving hex data from master device. voi...
by paul719
Fri Jul 06, 2018 5:45 am
Forum: ESP-IDF
Topic: [SPI Slave] some problems about SPI transactions
Replies: 0
Views: 2327

[SPI Slave] some problems about SPI transactions

I use esp32 as a spi slave device, and select mode 3(CPOL=1 CPHA=1) on both side. spi_slave_interface_config_t slvcfg = { .mode = 3, .spics_io_num = GPIO_SPI2_CS, .queue_size = 3, .flags = 0, .post_setup_cb = spi2_post_setup_cb, .post_trans_cb = spi2_post_trans_cb }; BUT this spi configuration is in...