Skip to main content
Associate
July 10, 2024
Question

Compare data in receive buffer aRxBuffer fails , in SPI_FULLDuplex_ComDMA

  • July 10, 2024
  • 1 reply
  • 670 views

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.

This topic has been closed for replies.

1 reply

ST Employee
October 25, 2024

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Dor_RH