SPI setup via AT commands
Posted: Wed Dec 17, 2025 9:36 pm
Hi,
I'm running into an issue with the ESP AT firmware on an ESP32, using AT firmware v3.4.0.0.
I'm testing the DRVSPI AT commands and I'm seeing a behavior that I can't explain. As you know, the SPI-related commands available in the stack are:
- AT+DRVSPICONFGPIO
- AT+DRVSPIINIT
- AT+DRVSPIREAD
- AT+DRVSPIWRITE
The issue is the following:
- AT+DRVSPICONFGPIO` always returns OK
- AT+DRVSPIINIT always returns ERROR
This happens regardless of:
- SPI mode
- Clock frequency
- Address and command bits
- GPIO selection using AT+DRVSPICONFGPIO
So, GPIO assignment seems to work correctly, but SPI initialization itself never succeeds.
Any clarification on the intended usage of DRVSPI would be appreciated
Thanks!
Juan
PS: the same behavior was reported some time ago: viewtopic.php?t=29580
I'm running into an issue with the ESP AT firmware on an ESP32, using AT firmware v3.4.0.0.
I'm testing the DRVSPI AT commands and I'm seeing a behavior that I can't explain. As you know, the SPI-related commands available in the stack are:
- AT+DRVSPICONFGPIO
- AT+DRVSPIINIT
- AT+DRVSPIREAD
- AT+DRVSPIWRITE
The issue is the following:
- AT+DRVSPICONFGPIO` always returns OK
- AT+DRVSPIINIT always returns ERROR
This happens regardless of:
- SPI mode
- Clock frequency
- Address and command bits
- GPIO selection using AT+DRVSPICONFGPIO
So, GPIO assignment seems to work correctly, but SPI initialization itself never succeeds.
Any clarification on the intended usage of DRVSPI would be appreciated
Thanks!
Juan
PS: the same behavior was reported some time ago: viewtopic.php?t=29580