ploopyco / classic-trackball

A trackball mouse. Mechanical files, PCBs, and firmware all included.
https://ploopy.co
767 stars 84 forks source link

Use ATmega32u4-AU to get factory DFU bootloader #14

Closed Duckle29 closed 4 years ago

Duckle29 commented 4 years ago

Hi there. I noticed the docs talk about putting new firmware on the board using an Arduino nano as an ISP programmer. While that certainly would work, it's maybe a bit involved when there's already lots of cheap ISP programmer options available, like the USBtinyISP, the USBasp, and more.

That said, it shouldn't even be necessary, as all ATmega32u4 chips that come configured to use an external crystal (non RC versions), also ship with Atmel-DFU pre-programmed, and as such can be programmed over USB.

The datasheet has a mistake in Table 33.2, but I've gotten clarification that the statement on the first page of the datasheet

Parts using external XTAL clock are pre-programed with a default USB bootloader

is indeed correct:

image

Figured I'd let you know for future batches :)

ploopyco commented 4 years ago

Thank you for looking into this.

Boards that we make already use the -AU variant (though they're shipped with mouse firmware already on-board). The instructions are written with the understanding that not everyone has access to these pre-programmed parts. This way, everyone making their own can program theirs, no matter what kind of chip they managed to get their hands on.