Production and testing: Flashing
The microcontroller of atusb contains firmware that must be
loaded before the testing process can commence. The firmware consists
of the following two parts:
- The boot loader (via serial programming, using avrdude)
- The application (via DFU, using dfu-util)
Note that atben has no microcontroller and therefore does not need
any flashing.
Flashing the boot loader
The following image shows the setup for flashing the boot loader:
To flash the boot loader,
- insert the atusb-pgm board into the Ben
- place the atusb board (DUT) on the table near the Ben,
without connecting it to USB
- place atusb-pgm onto atusb as shown in the image below
and gently push it on the contacts
- finally, run
make flash
The flashing takes about 20-30 seconds. If it should fail, make sure you
properly placed atusb-pgm and try again. If it keeps on failing,
remove atusb-pgm from the Ben and insert it again.
If flashing fails despite numerous attempts, proceed to the
fault analysis.
Flashing the application
The flashing script proceeds automatically to the flashing of the
application. All you need to do is insert the atusb board
into the PC:
The flashing script will wait up to 30 seconds for enumeration.
Once the atusb board has been detected, the script transfers
the application with DFU. After this, you can proceed with the
functional test.
If the board fails to enumerate, proceed with the
fault analysis.
Up: Production and testing
Prev: Software setup
Next: Functional test
Last update: 2011-05-18 Werner Almesberger