Skip to main content
Associate II
July 21, 2023
Question

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

  • July 21, 2023
  • 1 reply
  • 1149 views

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

    This topic has been closed for replies.

    1 reply

    Krautermann
    Senior
    July 21, 2023

    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?

    kim_dyAuthor
    Associate II
    July 21, 2023

    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.