Closed NaitikSanas closed 2 years ago
@ESP-Coco please take a look.
Hi @NaitikSanas , since the ESP32 SPI has some problems that cannot be solved, we do not recommend you to use a pure SPI for development. We recommend using the SDIO SPI (https://github.com/espressif/esp-at/tree/master/examples/at_spi_master/sdspi) for the same functionality.
HELLO! @ESP-Coco, I am having same issue, what are your thoughts on that?
Hi @Pratiksha0102 We recommend using the SDIO SPI (https://github.com/espressif/esp-at/tree/master/examples/at_spi_master/sdspi) for the same functionality. It can get a higher rate (over 10Mbps for TCP), and it's more stable(Many customers are already in mass production ). The original SPI driver had some problems that were very difficult to deal with.
@Jacques-zhao That's understandable we will move to SDIO since it looks more promising. thanks for your response.
Hello we have been developing driver for esp32-AT SPI for k210 MCU. We have compiled version Release/v2.2.0.0_esp32. it works but its very unstable. for instance many times Handshake line is just pulled low then never pulled high again. any further communication to esp32 causes it to crash. from source code we found that when Handshake line goes low Master needs to wait but many times Handshake line never pulled high back.
also sometimes what happens is if any command say CIPSEND is being in progress, and if i receive any data from network the flow for CIPSEND Command is disrupted causing it to crash. for both of these instances esp32 crashes after sending junk data to Host MCU.
Documentation for AT-SPI seems like incorrect since it does not even provide correct SPI transaction format which we figured out by running ESP32-AT SPI master slave examples on two esp32 boards.
ESP32 Backtrace :
Wave-forms Before crashing :