2026-03-17 8:36 AM - last edited on 2026-03-17 9:42 AM by TDK
According to Page 1354 of rm0394, setting LDMA_TX bit must occur only when SPE=0.
However, from my reading of the function HAL_SPI_Transmit_DMA, this bit may be set or cleared when the DataSize <= 8bit and MemDataAlignment == HALFWORD, even if SPE=1.
This looks like a bug.
Am I correct?
STM32Cube MCU Package for STM32F4 STM32L4, version 1.28.3
Solved! Go to Solution.
2026-03-17 9:46 AM
Ahh, the L4. I've corrected the OP to refer to STM32L4, not F4, in the text.
Looks like a bug to me.
2026-03-17 8:52 AM
Where in the code do you think it's being set? I'm not seeing it.
2026-03-17 9:34 AM
Lines 1965 (clear bit) and 1970 (set bit), stm32l4xx_hal_spi.c
2026-03-17 9:36 AM
and line 1958 (clear bit)
2026-03-17 9:46 AM
Ahh, the L4. I've corrected the OP to refer to STM32L4, not F4, in the text.
Looks like a bug to me.
2026-03-17 11:12 AM
Whoops! Yes I meant L4!
2026-03-17 11:12 AM
Version 1.18.1