Closed Kim-Jong-U closed 6 months ago
32U4 does not have a port A. You are probably using the Arduino pin names, which will not work.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug
, in progress
, on hold
, discussion
or to do
to prevent the issue from being re-flagged.
This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know. // [stale-action-closed]
Describe the Bug
I'm new to qmk and C, and I'm trying to make custom firmware for a 12 x 4 key handwired keyboard (with an Arduino Micro with an atmega32u4). But it's giving me these errors while compiling it:
~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:65:35: error: 'A1' undeclared here (not in a function); 65~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:65:39: error: 'A2' undeclared here (not in a function); 65~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:65:43: error: 'A3' undeclared here (not in a function); 65~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:61:63: error: 'D8' undeclared here (not in a function); 61~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:61:67: error: 'D9' undeclared here (not in a function); 61~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:61:71: error: 'D10' undeclared here (not in a function); 61~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:61:76: error: 'D11' undeclared here (not in a function); 61~~~~~~ ./.build/obj_smolestkeyboard_default/src/info_config.h:61:81: error: 'D12' undeclared here (not in a function); 61~~~~~~ [ERRORS]make[1]: [builddefs/common_rules.mk:361: .build/obj_smolestkeyboard_default/quantum/matrix.o] Error 1 Make finished with errors make: [Makefile:392: smolestkeyboard:default] Error 1
It's not giving any errors for the first 8 digital pins, but only for the following ones, as well as the analog pins. There are no typos anywhere. I assume either I have to define the pins somewhere (I couldn't find that anywhere), or qmk thinks I'm running another microcontroller that doesn't have these pins, or I am completely misunderstanding how the layout system in qmk works. It might also be that I'm using a version of avr-gcc newer than 8 (as you can see in the "qmk doctor Output" I provided), but I really dislike "solving" problems by downgrading things without completely making sure there is no other way to fix it. And I really doubt that's the issue anyways because it doesn't make sense to me how a newer version would just forget that my microcontroler has more than 8 digital pins.
Keyboard Used
smolestkeyboard
Link to product page (if applicable)
No response
Operating System
arch linux x86_64
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
I use arch btw :)