Why does SPI communication with DMA in STM32H745ZI (NUC-H745ZI) using example code is giving varying output?
Hi, I'm using the NUCLEO-H745ZIQ device, and I'm starting with SPI. I used the "SPI Full Duplex communication with DMA example code" in the repository available from "st" (STM32Cube_FW_H7_V1.10.0 folder). It is giving me the expected output but sometimes not.
Expected output is Green LED and Yellow LED must turn ON on pressing USER_BTN and this is happening sometimes but after a while the same code with same circuit is giving a wrong output i.e., Yellow LED and Red LED ON on button press.On debug, it seems to work but here also we cannot predict whether it'll work or not.
Please tell me why it is having random behavior.
Thank you