NodeMCU CH340 - SPI communication with STM32 not working
Posted: Tue Nov 01, 2022 3:47 pm
I am trying to communicate between nodeMCU board and STM32 board using SPI, with nodeMCU being the slave. I am using ESP_RTOS_SDK.
Master sends a message of 4 bytes:
- First is the command to write to slave "0x2"
-Second is the address "0x00"
-Last two bytes are the data.
The 4 bytes are sent back to back without delays and with chip select pin kept low.
The command is received correctly and "write buffer done interrupt" fires, however, the data buffer returns garbage. What could be the issue?
Master sends a message of 4 bytes:
- First is the command to write to slave "0x2"
-Second is the address "0x00"
-Last two bytes are the data.
The 4 bytes are sent back to back without delays and with chip select pin kept low.
The command is received correctly and "write buffer done interrupt" fires, however, the data buffer returns garbage. What could be the issue?