cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use spi dma using STM32F107VCT6 (DW1000)?

kim_dy
Associate II

I am trying to get the 'devID' by using the HAL_SPI_TransmitReceive_DMA function in CUBEIDE, but the proper 'devID' value is not coming out.

The correct devID value is 0xdeca0130. (Use 'HAL_SPI_TransmitReceive' function)

Please let me know if you have an example using that function.

kdy00416@wifive.co.kr

2 REPLIES 2
Krautermann
Senior II

I played around with the HAL_SPI_TransmitReceive_DMA function before and I noticed that the Tx Buffer has to be the same size of Rx buffer for it to work properly, unless someone can correct me...

Also have you made sure that the CPOL, CPHA, Data format, etc. are all set correctly for the master and slave?

Thanks!

first, I checked spi mode 0(CPHA = 0, CPOL = 0).

I am trying to use the 'HAL_SPI_TransmitReceive_DMA' function within the 'readfromspi' function, but the TX and RX buffers here are not buffers that I set arbitrarily.