drevilbones - Getting a compiler linking error ...

Getting a compiler linking error when I try to add some code to my keymap for the big LED
Compiling: quantum/keymap_introspection.c [OK]
Linking: .build/nullbitsco_nibble_rp2040_drevilbones.elf [ERRORS]
|
| /usr/lib/gcc/arm-none-eabi/13.3.1/../../../arm-none-eabi/bin/ld: .build/obj_nullbitsco_nibble_rp2040_drevilbones/quantum/keymap_introspection.o: in function `led_update_user':
| /home/nsondgeroth/qmk/qmk_firmware/./keyboards/nullbitsco/nibble/keymaps/drevilbones/keymap.c:65:(.text.led_update_user+0x6): undefined reference to `set_big_LED_r'
| collect2: error: ld returned 1 exit status
|
gmake[1]: *** [builddefs/common_rules.mk:268: .build/nullbitsco_nibble_rp2040_drevilbones.elf] Error 1
Make finished with errors
gmake: *** [Makefile:392: nullbitsco/nibble/rp2040:drevilbones] Error 1
Compiling: quantum/keymap_introspection.c [OK]
Linking: .build/nullbitsco_nibble_rp2040_drevilbones.elf [ERRORS]
|
| /usr/lib/gcc/arm-none-eabi/13.3.1/../../../arm-none-eabi/bin/ld: .build/obj_nullbitsco_nibble_rp2040_drevilbones/quantum/keymap_introspection.o: in function `led_update_user':
| /home/nsondgeroth/qmk/qmk_firmware/./keyboards/nullbitsco/nibble/keymaps/drevilbones/keymap.c:65:(.text.led_update_user+0x6): undefined reference to `set_big_LED_r'
| collect2: error: ld returned 1 exit status
|
gmake[1]: *** [builddefs/common_rules.mk:268: .build/nullbitsco_nibble_rp2040_drevilbones.elf] Error 1
Make finished with errors
gmake: *** [Makefile:392: nullbitsco/nibble/rp2040:drevilbones] Error 1
I have # included big_led.h. Weird that it compiles fine but then gets messed up in the linkage? I'm using the rp2040_branch, maybe there's a missing # include or some weird order issue somewhere?
1 Reply
drevilbones
drevilbonesOP2mo ago
Oops, I guess the big_led.c was never actually ported to the rp2040 bit-c, so this is much more complicated than copying those files over, heh heh, guess I should have guessed that.
Want results from more Discord servers?
Add your server