ESP AT SPI on C3
Posted: Fri Aug 12, 2022 12:54 am
Greetings,
We would like to use the ESP-AT SPI interface on the C3 Mini. I am seeing some of the expected behavior from the ESP firmware, but there seems to be a catch that I don't understand. I'm attaching a capture from the Salea of the SPI traffic in case you want to look at it with me.
We are sending the command "at+gmr" and then reading back the result. For the purpose of this test, we only read 16 bytes from the ESP at a time. We've done the same test with a larger buffer with similar results.
When we complete the write, we send command 0x7 to end the write. Then, we read-back the status. The ESP reports that we are still in write-mode. We send the command 0x7 again and this time, status returns that we can read data back. We're able to read the first segment of 8 bytes and then terminate the read with command 0x8. The second read of 0xb6 bytes is OK and then we send command 0x8 to terminate. This time, the ESP doesn't change the status and we are told there is still data to read. We read it again, but this time all data bytes are 0xd. We end the read with 0x8 command again, but the ESP never releases the Interrupt line and it continues to return status that there is data to read.
Is there more documentation on the details of this SPI protocol than what we find here:
https://docs.espressif.com/projects/esp ... PI_AT.html
Cheers
We would like to use the ESP-AT SPI interface on the C3 Mini. I am seeing some of the expected behavior from the ESP firmware, but there seems to be a catch that I don't understand. I'm attaching a capture from the Salea of the SPI traffic in case you want to look at it with me.
We are sending the command "at+gmr" and then reading back the result. For the purpose of this test, we only read 16 bytes from the ESP at a time. We've done the same test with a larger buffer with similar results.
When we complete the write, we send command 0x7 to end the write. Then, we read-back the status. The ESP reports that we are still in write-mode. We send the command 0x7 again and this time, status returns that we can read data back. We're able to read the first segment of 8 bytes and then terminate the read with command 0x8. The second read of 0xb6 bytes is OK and then we send command 0x8 to terminate. This time, the ESP doesn't change the status and we are told there is still data to read. We read it again, but this time all data bytes are 0xd. We end the read with 0x8 command again, but the ESP never releases the Interrupt line and it continues to return status that there is data to read.
Is there more documentation on the details of this SPI protocol than what we find here:
https://docs.espressif.com/projects/esp ... PI_AT.html
Cheers