Root/prod/doc/flash.hmac

Source at commit 873f80cb4dac00800826958f9869ec55dbd9e91c created 10 years 7 months ago.
By Werner Almesberger, tools/atrf-txrx/atrf-txrx.c: option -q becomes "quick" and uses aggressive polling
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<TITLE>Production and testing: Flashing</TITLE>
4<BODY bgcolor="#ffffff" link="#000000" vlink="#404040">
5
6<INCLUDE file="style.inc">
7
8<PAGE_BAR title="Production and testing">
9  <PAGE_ITEM href="setup.html">Software setup</PAGE_ITEM>
10  <PAGE_CURR href="flash.html">Flashing</PAGE_CURR>
11  <PAGE_ITEM href="test.html">Functional test</PAGE_ITEM>
12  <PAGE_ITEM href="analysis.html">Fault analysis</PAGE_ITEM>
13</PAGE_BAR>
14
15<SECTION_BAR>
16  <SECTION_ITEM href="#intro">Introduction</SECTION_ITEM>
17  <SECTION_ITEM href="#boot">Boot loader</SECTION_ITEM>
18  <SECTION_ITEM href="#app">Application</SECTION_ITEM>
19</SECTION_BAR>
20
21
22<!-- ====================================================================== -->
23
24
25<SECTION ref="intro" title="Introduction">
26
27The microcontroller of <B>atusb</B> contains firmware that must be
28loaded before the testing process can commence. The firmware consists
29of the following two parts:
30<OL>
31  <LI>The boot loader (via serial programming, using avrdude)
32  <LI>The application (via DFU, using dfu-util)
33</OL>
34<P>
35Note that <B>atben</B> has no microcontroller and therefore does not need
36any flashing.
37
38
39<!-- ====================================================================== -->
40
41
42<SECTION ref="boot" title="Flashing the boot loader">
43
44The following image shows the setup for flashing the boot loader:
45<P>
46<IMG src="setup-C.png">
47<P>
48To flash the boot loader,
49<UL>
50  <LI>insert the <B>atusb-pgm</B> board into the Ben
51  <LI>place the <B>atusb</B> board (DUT) on the table near the Ben,
52    without connecting it to USB
53  <LI>place <B>atusb-pgm</B> on <B>atusb</B> as shown in the image below
54    and gently push it on the contacts
55    <P>
56    <A href="atusb-programming.jpg"><IMG
57      src="atusb-programming.jpg" width="250"></A>
58    <P>
59  <LI>finally, <SAMP>cd</SAMP> to <SAMP>ben-wpan/prod/</SAMP> and run
60    <PRE>
61    make flash
62    </PRE>
63</UL>
64<P>
65The flashing takes about 20-30 seconds. If it should fail, make sure you
66properly placed <B>atusb-pgm</B> and try again. If it keeps on failing,
67remove <B>atusb-pgm</B> from the Ben and insert it again.
68If flashing fails despite numerous attempts, proceed to the
69<A href="analysis.html">fault analysis</A>.
70
71
72<!-- ====================================================================== -->
73
74
75<SECTION ref="app" title="Flashing the application">
76
77The flashing script proceeds automatically to the flashing of the
78application. All you need to do is insert the <B>atusb</B> board
79into the PC:
80<P>
81<IMG src="setup-D.png">
82<P>
83The flashing script will wait up to 30 seconds for enumeration.
84Once the <B>atusb</B> board has been detected, the script transfers
85the application with DFU. After this, you can proceed with the
86<A href="test.html">functional test</A>.
87<P>
88If the board fails to enumerate, proceed with the
89<A href="analysis.html">fault analysis</A>.
90
91<END author="Werner Almesberger" date="<GEN_DATE>">
92</BODY>
93</HTML>
94

Archive Download this file



interactive