2022-05-09 07:01 AM
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,
2022-05-09 07:34 AM
Perhaps review some worked examples?
STM32Cube_FW_H7_V1.9.1\Projects\NUCLEO-H743ZI\Examples\SPI\SPI_FullDuplex_ComIT\readme.txt
2022-05-09 07:46 AM
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.
2022-05-10 12:39 AM
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?
2022-05-10 01:13 AM
Suggestion #1: post some code showing the problem.
2022-05-10 01:28 AM
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)
2022-05-10 01:29 AM
I need example for stm32h743II , and it dose not exist in this library