IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit ae1455cc7dadfaa494c792217d1e4a53efb2747e created 7 years 1 month ago. By Stefan Schmidt, atusb-eui64: print out set address with upper case characters in hex | |
|---|---|
| 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 | |
| 27 | The microcontroller of <B>atusb</B> contains firmware that must be |
| 28 | loaded before the testing process can commence. The firmware consists |
| 29 | of 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> |
| 35 | Note that <B>atben</B> has no microcontroller and therefore does not need |
| 36 | any flashing. |
| 37 | |
| 38 | |
| 39 | <!-- ====================================================================== --> |
| 40 | |
| 41 | |
| 42 | <SECTION ref="boot" title="Flashing the boot loader"> |
| 43 | |
| 44 | The following image shows the setup for flashing the boot loader: |
| 45 | <P> |
| 46 | <IMG src="setup-C.png"> |
| 47 | <P> |
| 48 | To 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> |
| 65 | The flashing takes about 20-30 seconds. If it should fail, make sure you |
| 66 | properly placed <B>atusb-pgm</B> and try again. If it keeps on failing, |
| 67 | remove <B>atusb-pgm</B> from the Ben and insert it again. |
| 68 | If 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 | |
| 77 | The flashing script proceeds automatically to the flashing of the |
| 78 | application. All you need to do is insert the <B>atusb</B> board |
| 79 | into the PC: |
| 80 | <P> |
| 81 | <IMG src="setup-D.png"> |
| 82 | <P> |
| 83 | The flashing script will wait up to 30 seconds for enumeration. |
| 84 | Once the <B>atusb</B> board has been detected, the script transfers |
| 85 | the application with DFU. After this, you can proceed with the |
| 86 | <A href="test.html">functional test</A>. |
| 87 | <P> |
| 88 | If 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 | |
