qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.97k stars 38.62k forks source link

Atmega16U4: Oversized binary when compilig with QMK Configurator #17038

Closed 8bits4ever closed 2 years ago

8bits4ever commented 2 years ago

I have trouble to get a binary corresponding to "keyboards/converter/a1200/mistress1200" when using QMK Configurator. When compilig I get 250 bytes over the max size for Atmega16U4 (12288 bytes).

If I compile it on my desktop with my current QMK enviroment setup I get it just to fit (258 bytes free).

Is there a way to fix this, maybe by turning off a feature in the config file? I would really like to be able to use QMK Configurator to customize the keyboard

fauxpark commented 2 years ago

You can have a look through this page: https://docs.qmk.fm/#/squeezing_avr

But from the looks of it, a lot of that has already been done. TBQH, 16kB on AVR just doesn't cut it anymore, unfortunately.

8bits4ever commented 2 years ago

You can have a look through this page: https://docs.qmk.fm/#/squeezing_avr

But from the looks of it, a lot of that has already been done. TBQH, 16kB on AVR just doesn't cut it anymore, unfortunately.

Thanks. I will look in to that to see what more can I strip off.

Sadly its very difficult to get the 32U4 (32k chips) because of the global semiconductor shortage... Hopefully it gets better next year.

8bits4ever commented 2 years ago

I managed to shave around 700 bytes more (when compiling on my desktop). I will make a pull request with the changes shortly. Thanks again!