cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 HAL issue - null pointer in HAL_SPI_Transmit_DMA().

Jan Humpl
Associate II
Posted on September 26, 2017 at 17:59

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

0 REPLIES 0