Skip to content

feat: option to disable M0 clockless fallback on RP2040 - #1576

Merged
kriegsman merged 1 commit into
FastLED:masterfrom
JonnyHaystack:fix_rp2040_assembler_error
Jan 15, 2024
Merged

kriegsman merged 1 commit into
FastLED:masterfrom
JonnyHaystack:fix_rp2040_assembler_error

Conversation

@JonnyHaystack

@JonnyHaystack JonnyHaystack commented Dec 17, 2023 •

Copy link
Copy Markdown
Contributor

Fixes: #1481, #1571

When building for RP2040, at least with -O3 optimizations and the arduino-pico core, the M0 clockless assembly code fails to be assembled for RP2040. This code is only included to be used as a fallback if it fails to claim a DMA channel, which is an undesirable situation to be in anyway.

To keep everyone happy, I've added an option FASTLED_RP2040_CLOCKLESS_M0_FALLBACK which is 1 by default but can be set to 0 to disable this fallback and skip compiling m0clockless.h. This means the default behaviour remains the same (not breaking backwards compatibility), but gives users the ability to disable the fallback if it's causing them issues.

@kriegsman
kriegsman merged commit 6daa782 into FastLED:master Jan 15, 2024
@kriegsman

Copy link
Copy Markdown
Member

Thank you for this PR, and for figuring out what the issue was here - and making a good work-around, including the #define option in case anyone wants that. Much appreciated, and thanks for the help with the FastLED library!

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.

"Error: invalid offset, value too big" when building for Raspberry Pi Pico (RP2040)

2 participants