-->
Page 1 of 1

ESP-12F SPI in slave mode

PostPosted: Wed Nov 02, 2022 7:56 am
by Foxhound
Trying to connect STM32F103 to ESP-12F via SPI
STM32F103 as master, and ESP-12F in slave mode.

I found this library https://github.com/esp8266/Arduino/tree/master/libraries/SPISlave

Actually, this example is loaded into the ESP-12F as is https://github.com/esp8266/Arduino/blob ... e_Test.ino

When I send the string "Hello Slave!" from the master side.
ESP-12F to COM port instead of the expected "Question: Hello Slave!" writes "Status Sent!" sometimes ""Question:" with some garbage.

I looked with a logic analyzer what is happening on the bus, everything seems to be fine.
Picture from the logic analyzer:
Image

What am I doing wrong?

Re: ESP-12F SPI in slave mode

PostPosted: Wed Nov 02, 2022 11:43 pm
by rooppoorali
Hello, are you selecting 115200 baud rate when opening the serial monitor?

Re: ESP-12F SPI in slave mode

PostPosted: Thu Nov 03, 2022 10:11 am
by Foxhound
Of course Text "Status Sent!" displayed correctly ....
The problem is that the branch with receiving data from SPI does not work.