AnsweredAssumed Answered

STM32H7 HAL issue - null pointer in HAL_SPI_Transmit_DMA().

Question asked by Jan Humpl on Sep 26, 2017

Hi,

 

how can I report bug found in STM32H7 sources? Do you have any issue reporting system?

 

I found bug in HAL_SPI_Transmit_DMA() function. I use SPI channel in "Transmit only mode" (configured using STM32CubeMX) so the RX DMA channel is NULL. However the function fails because it checks alignment of DMA RX channel. Moreover there is not NULL check - wow!

 

Anyway the error is reported after the SPI state is set to BUSY. That means the driver cannot been used until reset. I would expect that when transmit fails the driver should be in READY or ERROR state, not in BUSY state.

 

Regards.

 

Jan

Outcomes