cancel
Showing results for 
Search instead for 
Did you mean: 

Observing a data shift in SPI receiption

AADESH
Associate II

Hi Team,

I am observing a shift in a data each time i am sending same data from ESP8266 master to STM32f103RCT6 slave controller but each time i am getting different data and seems to be the shifted data as i can see some part of strings sent. 
I have observed with the logic analyzer and it is showing same data each time. 

I have attached the project and logic analyzer traces and data printed over putty from stm32 MCU, Please check the SPI configuration if i am doing anything wrong. 

Please help debug this issue. 

Thank you in advance!

 

Best Regards,

Aadesh

2 REPLIES 2
AScha.3
Chief III

Hi,

did you check: same/or matching setting for the spi clock ?

see, in Cube:

AScha3_0-1737898673180.png

Has to match, what you send from ESP8266 . Otherwise you receive...nonsense.

If you feel a post has answered your question, please click "Accept as Solution".
TDK
Guru

Are you using a CS line to sync master/slave? Can you show the traces of CS/SCK/MOSI/MISO?

If you feel a post has answered your question, please click "Accept as Solution".