Is it possible to use spi dma using STM32F107VCT6 (DW1000)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-21 12:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-21 12:16 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-21 12:31 AM
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.
