2023-07-05 06:04 PM
i'm using 'HAL_SPI_TransmitReceive_DMA' , but error in 'devid'
'HAL_SPI_TransmitReceive_DMA' -> The path to use this function is
If I use the commented 'HAL_SPI_TransmitReceive' function, the 'devID' value is 0xdeca0310 (normal value)
If you use the 'HAL_SPI_TransmitReceive_DMA' function, the 'devID' value comes out as 0x0(error).
DMA settings are as follows.
I must solve this problem/
Let me know if there is any information you need to solve the problem.
2023-07-06 07:02 AM
HAL_SPI_TransmitReceive_DMA starts a transmission which runs in the background. You need to wait for it to complete before you can pull up the CS pin and read the data.
2023-07-09 07:00 PM
I'm sorry, but what CS pin are you talking about?
2023-07-09 07:22 PM
In addition, do I need to use HAL_DMA_Start as well?
2024-02-21 01:26 AM
Wait DMA to finish before you set NSS(CS) pin.
2024-02-21 02:17 AM
Please use this button to properly post source code - not as images:
2024-02-21 02:20 AM