Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem When Compiling for RP2040 #170

Open
DanielSim84 opened this issue Jan 19, 2023 · 0 comments
Open

Problem When Compiling for RP2040 #170

DanielSim84 opened this issue Jan 19, 2023 · 0 comments

Comments

@DanielSim84
Copy link

Which Board?
Choc

Which Board Revision?
Choc, 2.1

What Software are you using?
Building QMK on QMK_MSYS

What is the issue?
Trying to compile the RP2040 version for a Splinky Controller, but encountered an "ws2812_vendor.c:275:26: error: iteration 29 invokes undefined behavior [-Werror=aggressive-loop-optimizations]" error. Compilation works fine for non RP2040 configuration.

I narrowed down the issue to config.h in keyboards/sofle_choc where RGBLED_NUM is defined as 29 while RGB_MATRIX_LED_COUNT is 58, leading to the undefined behaviour above when the for-loop tried to assess an index bigger than the array. After comparing to other config.h for other keyboards, I decided to change RGBLED_NUM to 58 which allows compilation to proceed but I am not sure if this is the solution (can't test for now... I destroyed a board when desoldering an LED)

What you expected:
Success compilation when running qmk compile -e CONVERT_TO=promicro_rp2040
kb_error_1

image

@DanielSim84 DanielSim84 changed the title SW: summarise your issue here. Problem When Compiling for RP2040 Jan 19, 2023
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

No branches or pull requests

1 participant