cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4-Discovery Two board, SPI between

blazej
Associate
Posted on October 22, 2016 at 13:59

Hi! I'm trying to estabilish connection between two discovery stm32f4 boards. Everything seems fine, I'm sending alway value of ''0x01''. First transmission is okay, but next is not receiving ''0x01'' but '' 0x08 then 0x10 then 0x20, 0x40, 0x80 and then back to 0x01?

What 's the problem here? I tried flusing buffor nothing helps.

I'm coding in IAR.

Master main: http://wklej.org/hash/57dae22f06c/

Slave main:  http://wklej.org/hash/88b9f5d3440/

#stm32f4
1 REPLY 1
slimen
Senior
Posted on October 27, 2016 at 17:03

Hello,

Have a look to the working SPI example under the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

firmware package, compare it to your own configuration to know what is wrong.

It may be very helpful, as you can update it according to your needs:

 STM32Cube_FW_F4_V1.13.0\Projects\STM32F4-Discovery\Examples\SPI

Regards