AnsweredAssumed Answered

Wrong data read, STM32f0 communicating with a stm32f0-discovery

Question asked by sebastien.osenat on Aug 26, 2015
Latest reply on Aug 27, 2015 by JaiMadafaca
Hi, i'm getting stuck in my work. What i do is simple, i make a STM32F030F4P6 communicating with a STM32F0-discovery board by SPI. The STM32F030F4P6 is the master and the discovery is the slave. All initializing have been done correctly.


My problem is that when the master sends a data on the MOSI line, the slave misunderstand it and see a wrong data. Whenever i look on an oscilloscope i see the right data on the MOSI line but checking on the register of the discovery made me realize that it does see another data.

I can't explain why it's seeing a wrong data, so if somebody already had this kind of problem or if you know what could fix it, please let me know. I really need to get this work as soon as possible. And if you need a code sample don't hesitate!

Thank you.

Outcomes