Skip to content

fix(nrf51): platform does not compile; SPIOutput has no definition and no board covers it #5119

Closed

Description

@zackees

Found while starting #5047. Part of #5024.

A standalone cross-compile of a small APA102 sketch (-DNRF51 -mcpu=cortex-m0, with stub vendor headers because the real SDK was not available) fails before any vendor API matters:

  • platforms/arm/is_arm.h does not define FL_IS_ARM for NRF51, so led_sysdefs_arm_nrf51.h hits its #error.
  • With -DFL_IS_ARM forced, chipsets.h fails at its SPIOutput base classes (expected template-name before '<').
  • From reading the code: spi_output_template.h derives from NRF51HardwareSPIOutput, which nothing defines. fastspi_arm_nrf51.h defines NRF51SPIOutput, under an FL_IS_NRF52 guard.
  • ci/boards.py has no nRF51 board, so nothing catches this.

The stub headers could hide or add errors, so a build with the real SDK should confirm this. Decision needed: revive the platform, with a board entry, or retire it. #5047 cannot deliver a real production path until then.

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