Associate
October 15, 2014
Question
STM32F4 SPI Communication - Last MISO Bit not received
- October 15, 2014
- 5 replies
- 1993 views
Posted on October 15, 2014 at 10:33
Hello,
I use a STM32F4-DISCOVERY Board in master mode, which should communicate with a slave via SPI. Basically, the communication is working, but the last bit on the MISO line is always lost. For example, if I receive 0x2E1F (as you can see in the attached picture, purple is MISO, blue is CLK), which would be correct, the STM32F4 recognizes it as 0x2E1E, the last bit is wrong. I tried this with multiple requests, same result. The LSB is always seen as 0. MOSI data is correct. Clock polarity is also correct. Has anybody of you already experienced similar problems or has an idea of how to fix this? Greetings Thomas P.S.: The rather complex code is because i tried to split the data word into 2 Bytes for transmission, hoping it would fix my problem, but the result stays the same. #stm32f4-spi-miso