Skip to content

Fix FIFO queue size#90

Open
xarantolus wants to merge 2 commits into
mainfrom
fix/spi-fifo-size
Open

Fix FIFO queue size#90
xarantolus wants to merge 2 commits into
mainfrom
fix/spi-fifo-size

Conversation

@xarantolus
Copy link
Copy Markdown
Contributor

Fix 16 bit SPI devices

@xarantolus xarantolus marked this pull request as ready for review May 21, 2026 17:49
Copilot AI review requested due to automatic review settings May 21, 2026 17:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the STM32L4 SPI bus reconfiguration path to correctly set the RX FIFO threshold (FRXTH) based on the configured word size, addressing corrupted reads when using >8-bit (e.g., 16-bit) SPI devices.

Changes:

  • Set FRXTH to half-full for >8-bit words and quarter-full for ≤8-bit words when (re)configuring a device.
  • Add an in-code explanation of why FRXTH must track word width to prevent RXNE timing issues.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants