-->
Page 1 of 1

NodeMCU CH340 - SPI communication with STM32 not working

PostPosted: Tue Nov 01, 2022 3:47 pm
by Arwa Ashraf
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?

Re: NodeMCU CH340 - SPI communication with STM32 not working

PostPosted: Sat Nov 05, 2022 7:29 am
by rooppoorali