Closed tmk closed 2 years ago
It needs code to initialize registers for ATMega32u2.
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/avr/bootloader.c#L142-L162
Watchdog timer reset is used to run bootloader and it makes registers initialized now. Controrller specific initialization codes is no longer needed.
https://github.com/tmk/tmk_keyboard/blob/37a452f7c96871e1ca166dc29f7692e1334f4b06/tmk_core/common/avr/bootloader.c#L113-L131
It needs code to initialize registers for ATMega32u2.
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/avr/bootloader.c#L142-L162