-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why ESP32 doesn't support AT command through SPI? #259
Comments
We have developed ESP32 SPI AT, but there is something wrong with it based on current driver, so we removed it. If you want to use MCU SPI, you can try ESP32 SDIO AT, MCU is transmit data through SPI. The demo for MCU is https://github.com/espressif/esp-at/tree/master/examples/at_sdspi_host, you just need to implement the APIs on MCU side in https://github.com/espressif/esp-at/blob/master/examples/at_sdspi_host/components/platform/esp32/include/port.h |
Hi, thank you for quickly reply. |
Hi, |
Hi, wo need to deliver our products in 2 months later. |
Hello, |
@hwnBEAST If MCU want to send huge data, the data may be overwritten if ESP32 slave does not fetch in time. |
@xcguang Is there any ongoing work on this issue? |
Hi @tsvehagen , |
@xcguang Appreciate the answer, thanks. Yea the SDIO option would be nice but on the HiFive1 board (https://www.sifive.com/boards/hifive1-rev-b) not all the SDIO pins are connected unfortunately. |
@xcguang Is there any ongoing work on this issue? |
Would also look forward to AT via SPI since the hifive1_revb does not wire up all SDIO pins. Factory flashed firmware on the esp32 also uses HSPI-AT module so they got it to work somehow. |
any updates on this? It would be really helpful to be able to at least reproduce the esp-at version that is running on Hifive1_revB boards. |
Frankly speaking, all available documentation is either out of sync, outdated or just plainly wrong. There seems to be an "old" AT over SPI protocol and a new one. But neither the workflow is in-deeply explained nor the data_info or slave_info is (byte-order missing, details about slave-state missing), no explanation how the handshake-pin must be used, logic-analyzer images are all outdated (no dummy or address bytes as explained in the newer protocol). SDIO is gone in esp-at "menuconfig" too. |
For anyone stumbling onto this: it seems like v2.2.0.0_esp32 is able to handle AT commands via SPI, I did not get around to test it yet, though. |
Why ESP32 doesn't support AT command through SPI?
Is there have some hardware issue?
I have found the following code in this repo:
#if IDF_TARGET_ESP8266
source "$ESP_AT_PROJECT_PATH/main/interface/hspi/Kconfig"
#endif
Why only ESP8266 support?
Can I port this hspi to ESP32 too?
Thanks!
The text was updated successfully, but these errors were encountered: