You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(stm32): writeBit cannot produce start bits when hardware SPI owns the pins #5116
Found by CodeRabbit on #5115. With FASTLED_ALL_PINS_HARDWARE_SPI, STM32SPIOutput::writeBit writes GPIO while the SPI peripheral may own the data and clock pins, so FLAG_START_BIT output (for example SM16716) can fail. This predates #5115 and has not been reproduced on hardware. Part of #5024.
PR #5175 fixes the STM32duino HAL path. writeBit now takes the pins back as GPIO for the bit, then spi_init() restores their SPI function. Still open here:
The Arduino Mbed (MbedSPI, GIGA) path still drives pins that the SPI peripheral owns.
Not checked on hardware.
Separate, pre-existing problem: the HAL path sends bytes on the board's default SPI_MOSI/SPI_SCK, not on DATA_PIN/CLOCK_PIN.
Verified the reported STM32 HAL writeBit ownership defect is already addressed on master by f4db884 (PR #5175). writeBit hands the HAL SPI pins to GPIO to emit the bit and restores SPI ownership afterward. This is confirmation of the merged source fix, not a new physical waveform measurement; no additional patch is needed for the tracked defect.
Activity
zackees commentedon Nov 8, 2026
PR #5175 fixes the STM32duino HAL path.
writeBitnow takes the pins back as GPIO for the bit, thenspi_init()restores their SPI function. Still open here:MbedSPI, GIGA) path still drives pins that the SPI peripheral owns.SPI_MOSI/SPI_SCK, not onDATA_PIN/CLOCK_PIN.zackees commentedon Nov 9, 2026
Verified the reported STM32 HAL writeBit ownership defect is already addressed on master by f4db884 (PR #5175). writeBit hands the HAL SPI pins to GPIO to emit the bit and restores SPI ownership afterward. This is confirmation of the merged source fix, not a new physical waveform measurement; no additional patch is needed for the tracked defect.
fix(stm32): hand HAL SPI pins to GPIO for writeBit start bits (FastLE…