Root/prod/doc/flash.html

Source at commit 6adfd4b1fd5f3a39899b0e6d9c0270177f98f0f5 created 8 years 1 month ago.
By Werner Almesberger, prod/doc/flash.html: described the flashing process
1<TITLE>Production and testing: Flashing</TITLE>
2<BODY>
3<HTML>
4<H1>Production and testing: Flashing</H1>
5
6The microcontroller of <B>atusb</B> contains firmware that must be
7loaded before the testing process can commence. The firmware consists
8of the following two parts:
9<OL>
10  <LI>The boot loader (via serial programming, using <B>avrdude</B>)
11  <LI>The application (via DFU, using <B>dfu-util</B>)
12</OL>
13<P>
14Note that <B>atben</B> has no microcontroller and therefore does not need
15any flashing.
16
17
18<!-- ====================================================================== -->
19<!-- ---------------------------------------------------------------------- -->
20
21
22<H2>Flashing the boot loader</H2>
23
24The following image shows the setup for flashing the boot loader:
25<P>
26<IMG src="setup-C.png">
27<P>
28To flash the boot loader,
29<UL>
30  <LI>insert the <B>atusb-pgm</B> board into the Ben
31  <LI>place the <B>atusb</B> board (DUT) on the table near the Ben,
32    without connecting it to USB
33  <LI>place <B>atusb-pgm</B> onto <B>atusb</B> as shown in the image below
34    and gently push it on the contacts
35    <P>
36    <A href="http://downloads.qi-hardware.com/people/werner/wpan/tmp/atusb-programming.jpg"><IMG
37    src="http://downloads.qi-hardware.com/people/werner/wpan/tmp/atusb-programming.jpg"
38    width="250"></A>
39    <P>
40  <LI>finally, run
41    <PRE>
42    make flash
43    </PRE>
44</UL>
45<P>
46The flashing takes about 20-30 seconds. If it should fail, make sure you
47properly placed <B>atusb-pgm</B> and try again. If it keeps on failing,
48remove <B>atusb-pgm</B> from the Ben and insert it again.
49If flashing fails despite numerous attempts, proceed to the
50<A href="analysis.html">fault analysis</A>.
51
52
53<!-- ====================================================================== -->
54
55
56<H2>Flashing the application</H2>
57
58The flashing script proceeds automatically to the flashing of the
59application. All you need to do is insert the <B>atusb</B> board
60into the PC:
61<P>
62<IMG src="setup-D.png">
63<P>
64The flashing script will wait up to 30 seconds for enumeration.
65Once the <B>atusb</B> board has been detected, the script transfers
66the application with DFU. After this, you can proceed with the
67<A href="test.html">functional test</A>.
68<P>
69If the board fails to enumerate, proceed with the
70<A href="analysis.html">fault analysis</A>.
71
72<P>
73<HR>
74Up: <A href="index.html">Production and testing</A>&nbsp;
75Prev: <A href="setup.html">Software setup</A>
76Next: <A href="test.html">Functional test</A>&nbsp;
77<HR>
78Last update: 2011-05-18&nbsp;&nbsp;<I>Werner Almesberger</I>
79<HR>
80</BODY>
81</HTML>
82

Archive Download this file



interactive