You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
DanielSim84
changed the title
SW: summarise your issue here.
Problem When Compiling for RP2040
Jan 19, 2023
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:
![kb_error_1](https://user-images.githubusercontent.com/20470600/213351562-c6c9bb4b-113e-4df9-b58b-51d81b0a8145.png)
Success compilation when running qmk compile -e CONVERT_TO=promicro_rp2040
The text was updated successfully, but these errors were encountered: