cancel
Showing results for 
Search instead for 
Did you mean: 

Compare data in receive buffer aRxBuffer fails , in SPI_FULLDuplex_ComDMA

Rb7
Associate

Hi,
I work with STM32H753zi , and I used the example SPI_FULLDuplex_ComDMA.
I took 2 boards and connected 4 wires between them , as shown in the Readme file.
I run the test .
In master , the 2 LEDS that indicate Rx and TX completion turn ON.
In slave  , LED 2 that indicate Rx completion turn ON, LED 1 is OFF.  But LED 3 that indicates error 
is ON.
After debugging , the error arrives from trying to compare the received data (aRxBuffer ) to expected data.
The data in aRxBuffer is 0.
I tried to replace all 4 wires -> it did not help.
I tried to move to another example SPI_FULLDuplex_ComIT -> same failure.

What may be the cause ?
Am I missing something ?
Thanks,
Rafi.

1 REPLY 1
Dor_RH
ST Employee

Hello @Rb7,

  • Verify Connections:  

Ensure that the connections between the master and slave boards are correct and secure, and check the configuration of solder bridges as indicated in the readme.

  • Check SPI Configuration and DMA Configuration

here are some corrected and verified links for articles on STM32 SPI and using DMA with STM32:

Getting Started with STM32 DMA (STMicroelectronics)

- Getting started with SPI (STMicroelectronics)

I hope my answer has helped you. When your question is answered, please select this topic as solution that answered you, it will help others find that answer faster.

Thanks for your contribution.

Dor_RH