Change Details
atusb/fw/README |
1 | | Requires very recent toolchain, because ATmega32U2 is relatively new. |
| 1 | Requires a very recent toolchain, because ATmega32U2 is relatively new. |
2 | 2 | |
3 | | Building: |
| 3 | - Building: |
4 | 4 | |
5 | | make |
6 | | make upload prog |
| 5 | make |
| 6 | |
| 7 | - Uploading the firmware to a Ben (for flashing with the atusb-pgm cable): |
| 8 | |
| 9 | make HOST=<hostname> upload |
| 10 | |
| 11 | Example: |
| 12 | |
| 13 | make HOST=ben upload |
| 14 | |
| 15 | HOST defaults to "jlime". |
| 16 | |
| 17 | - Flashing the boot loader: |
| 18 | |
| 19 | Prerequisite: avrdude on the Ben. |
| 20 | |
| 21 | Disconnect the atusb board from USB. Insert the atusb-pgm connector into |
| 22 | the Ben. Place the atusb-pgm adapter on the exposed contact pads of the |
| 23 | atusb board and push it down. Then run |
| 24 | |
| 25 | make prog |
| 26 | |
| 27 | This takes about 15 seconds. If the programming fails with an error |
| 28 | message like "Yikes! Invalid device signature.", verify that the |
| 29 | atusb-pgm board is properly connected and placed, then try again. |
| 30 | |
| 31 | - Uploading the application: |
| 32 | |
| 33 | Prerequisite: dfu-util installed on the PC. |
| 34 | |
| 35 | Insert atusb into the PC, then run |
| 36 | |
| 37 | make dfu |
| 38 | |
| 39 | Note: since the boot loader resets the USB bus after timing out, |
| 40 | this operation can fail with a message like "No DFU capable USB device |
| 41 | found". Just retry, and it will eventually get through. |
7 | 42 | |
8 | 43 | -------------------------- |
9 | 44 | |
Download the corresponding diff file