Skip to content

[4.0 Back Port] Separate FIFO locations for TX & RX on SX1280 - #3623

Merged
pkendall64 merged 3 commits into
ExpressLRS:4.x-maintfrom
pkendall64:backport-sx1280-fifo
Apr 23, 2026
Merged

pkendall64 merged 3 commits into
ExpressLRS:4.x-maintfrom
pkendall64:backport-sx1280-fifo

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

This PR back-ports #3620 to 4.x for a 4.0.1 release

Problem

On SX1280 receivers, the radio driver was using the same internal packet buffer region for both transmit and receive operations. Under rare conditions this could allow a just-transmitted telemetry payload, such as an OTA LinkStats packet, to be read back through the receive path and misinterpreted as RC data. Because LinkStats and RC packets share the same OTA packet type value; when in MAVLink mode, this could appear on the flight controller as a bogus RC_CHANNELS_OVERRIDE frame and would cause a disarm of the craft if using channel-based arming.

Solution

The SX1280 driver now uses separate FIFO base addresses for transmit and receive. This prevents transmitted telemetry data from being re-read through the RX path and removes the buffer aliasing condition that could cause LinkStats payloads to be decoded as RC data.

Belt-and-braces

As an additional safeguard, the RX path also validates the radio status returned by GET_RXBUFFERSTATUS before reading packet data. The driver only accepts a received packet if the chip reports that it is in RX mode and that data is available for reading.

@pkendall64 pkendall64 changed the title Separate FIFO locations for TX & RX on SX1280 [4.0 Back Port] Separate FIFO locations for TX & RX on SX1280 Apr 21, 2026

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

8h run SX1280/SX1280 with no obvious issues.

@pkendall64
pkendall64 merged commit 74ff437 into ExpressLRS:4.x-maint Apr 23, 2026
26 checks passed
@pkendall64
pkendall64 deleted the backport-sx1280-fifo branch April 23, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants