2026-01-28 3:21 AM
Hi everyone,
I’m experiencing unexpected behavior while testing 9-bit SPI on an STM32, observed with a logic analyzer. The issue only occurs when the MOSI line is physically connected to the slave.
Observations:
:keycap_1: MOSI not connected
CS and SCLK are correct
MOSI stays high
SPI decoder shows 0x1FF
Expected behavior for a floating MOSI line
:keycap_2: MOSI connected to the slave
MOSI data becomes correct
But a very brief rising edge (glitch) appears on CS during data transmission
CS immediately returns active → causes unintended slave deselection
Result: data loss during the SPI frame
Additional info:
STM32 model: stm32u5g9j-dk2
SPI mode: 9-bit, master
SCLK frequency: 10 MHz
Is this a known issue with 9-bit SPI on STM32?
Should I add a pull-up/pull-down on CS or MOSI?
Any other suggestions to avoid this glitch?
Attached are screenshots showing the behavior.
Thanks in advance for your help!MOSI connected
MOSI not connected
Solved! Go to Solution.
2026-01-28 3:26 AM
This is signal noise due to cross-talk or a logic analyzer connection which is not ideal.
2026-01-28 3:26 AM
This is signal noise due to cross-talk or a logic analyzer connection which is not ideal.