cancel
Showing results for 
Search instead for 
Did you mean: 

spi in STM32H7

M4D
Associate II

SPI in stm32h7 (stm32h743iitx in slave mode) don't work, receive wrong values.

how I make spi to work correctly in stm32H7? its not clear at all

thanks,

6 REPLIES 6

Perhaps review some worked examples?

STM32Cube_FW_H7_V1.9.1\Projects\NUCLEO-H743ZI\Examples\SPI\SPI_FullDuplex_ComIT\readme.txt

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Muhammed Güler
Senior III

First of all, you need to match the SPI configuration of the master device with the SPI configuration of your own device. data size, first bit, clock polarity and clock phase settings must match the master device.

M4D
Associate II

hi, 

all the configuration are the same,

but when I transmit from master to slave I get wrong values.

( to be more accurate I connected two boards via SPI, also connected common GND) 

any suggestions?

gbm
Lead III

Suggestion #1: post some code showing the problem.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
M4D
Associate II

its very simple code generated by cubeMX

use one st eval board and another board

cube code was generated ,receive and transmit values via SPI

the first MCU (master ) is stm32L100 and the second (slave) is stm32h743II (I understood that SPI with DMA don't work in this type of MCU, bug or something)

(note this is only for demonstration for existing board)

I need example for stm32h743II , and it dose not exist in this library