Hello,
I am using ESP32-WROOM-32E and trying to read/write to external flash memory via SPI using AT-commands:
AT+DRVSPICONFIGPIO
AT+DRVSPIINIT
AT+DRVSPIRD
AT+DRVSPIWR
https://docs.espressif.com/projects/esp ... mands.html
I configured the AT firmware (./build.py menuconfig -> Component config -> AT):
It seems that GPIO configuration (AT+DRVSPICONFIGPIO) works, it returns OK, but I keep getting ERROR when I try to initialize SPI Master Driver (AT+DRVSPIINIT). I tried with many clock speeds, SPI modes, etc. I always get ERROR.
I have also tried several different AT firmware configurations (default, all AT command sets on...)
Does anyone have idea what could be a problem?
SPI Master Driver initialization via AT-commands
Re: SPI Master Driver initialization via AT-commands
In fact, if you want to read/write external flash memory, we do not recommend you use the SPI command directly.
We recommend you to use a demo first to adjust the communication with SPI Flash. You can refer to our demo https://github.com/espressif/esp-idf/tr ... lash_fatfs for this part, or you can use SPI demo https://github.com/espressif/esp-idf/tr ... /hd_eeprom to develop.
After you've done this, you can abstract these steps into a few user-defined AT commands https://docs.espressif.com/projects/esp ... mands.html
We recommend you to use a demo first to adjust the communication with SPI Flash. You can refer to our demo https://github.com/espressif/esp-idf/tr ... lash_fatfs for this part, or you can use SPI demo https://github.com/espressif/esp-idf/tr ... /hd_eeprom to develop.
After you've done this, you can abstract these steps into a few user-defined AT commands https://docs.espressif.com/projects/esp ... mands.html
Who is online
Users browsing this forum: No registered users and 31 guests