Keyboard stuck in Bootloader mode

Try comment out Line 47 in the firmware:

I also had this problem during my development of custom keyboard fw.
It would get stuck in the loop and the host cannot enumerate the device.

My first workaround was to comment out L47.
Later on I developed a theory (which seems correct) that while(!USBComposite) is too busy and would block the usb interrupts.
This worked far more reliably:

2 Likes