AnsweredAssumed Answered

why is "HAL_SPI_TransmitReceive_DMA" generated with 8-bit pointers when dma with 16 bit is configured

Question asked by keiner.christoph on Sep 19, 2017
Latest reply on Sep 19, 2017 by Clive One

I'm using STM32F103RBT6 and try to make an slave SPI-Transfer over DMA using th latest STM32Cube.

The Master sends me 16-Bit Data Packets, i configured the SPI1 to 16 Bit, the DMA channels for Receive and transmit with half word, both circular.

 

My first Question: the Function "HAL_SPI_TransmitReceive_DMA" is generated with 8-bit pointers, i cannot pass a 16-bit Array! Why?

 

->I also use SPI2 with DMA for an external ADC with 8-Bit transfer.

I wondered, that all DMA Interrupts call the same HAL_SPI_TxRxHalfCpltCallback and HAL_SPI_TxRxCpltCallback.

 

Thanks for helping me!

Outcomes