Skip to content

fix(sam3x): SAMHardwareSPIOutput::writeBit may not reach the pads, and warning push/pop is unbalanced #5117

Closed

Description

@zackees

Found in review of #5046, from reading the code and my understanding of the PIO controller. Not reproduced on hardware.

  • init() gives the data and clock pins to peripheral A with PIO_Configure(PIO_PERIPH_A). writeBit drives them through PIO registers without returning them to PIO control, so the bits may not reach the pads. SM16716Controller::writeHeader depends on this. The SAMD writer in the same file reclaims the pins with pinMode and restores them with pinPeripheral.
  • In fastspi_arm_sam.h, FL_DISABLE_WARNING_POP runs on every target, but the matching PUSH is inside the SAMD guard.

Part of #5024.

Activity

  1. added
    sanitized
    on Nov 6, 2026
  2. moved this from Triage to Done in FastLED Trackeron Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions