Bug in SPI Transmit ?
Dear ST-Team,
I am using the HAL SPI driver (v1.11.0) on an STM32L072 in blocking mode, 8-bit data size and calling HAL_SPI_Transmit. After some calls, the assert fails because the buffer I am calling it with has a non 16-bit aligned address.
I think the bug might be in line 757, in stm32l0xx_hal_spi.c, in this if:
if ((hspi->Init.DataSize > SPI_DATASIZE_8BIT) || ((hspi->Init.DataSize <= SPI_DATASIZE_8BIT) && (Size > 1U)))and should be replaced with the following:
if (hspi->Init.DataSize > SPI_DATASIZE_8BIT), as the next statement (the assert check) should be done only if the driver is used in the 16-bit mode.
Please let me know if this is a bug or am I getting it wrong.
Regards,
Andreea
