Difference between revisions of "Quick Start Guide/Flashing"

From Ethersex_Wiki
Jump to: navigation, search
(Menu)
(Requirements)
Line 3: Line 3:
 
= Requirements =   
 
= Requirements =   
  
* AVR NET-IO
+
* the previously selected board, e.g. AVR NET-IO, ready built and (hopefully) tested
* ISP-Programmer (we're using a Evaluation-Board made by Pollin)
+
* an ISP-Programmer of your choice supported by [http://www.nongnu.org/avrdude avrdude]
* 10-pin connector cable (from Evaluation-Board to the NET-IO)
+
* ISP connector cable
  
 
= Flashing with avrdude =
 
= Flashing with avrdude =

Revision as of 10:37, 13 July 2013

Requirements

  • the previously selected board, e.g. AVR NET-IO, ready built and (hopefully) tested
  • an ISP-Programmer of your choice supported by avrdude
  • ISP connector cable

Flashing with avrdude

Avrdude offers several options. We will look on the most important, to make basic flashing of ethersex possible.

  • The chip you use, should be m32 for the ATMega32 in most cases: -p m32
  • Debug messages: -v
  • The protocol spoken with the programmer, for the Evaluation-Board: -c ponyser
  • The serial port the programmer is connected to: -P /dev/ttyS0
  • The command you want to execute: -U flash:w:ethersex.hex

After you checked all options and adjusted them to your settings you should have a command like this:

 avrdude -v -p m32 -c ponyser -P /dev/ttyS0 -U flash:w:ethersex.hex

Writing the Bytes

  • Disconnect the power from the NET-IO
  • Connect your ISP cable to the programmer and the Net-IO
  • Reconnect the power and connect your programmer to the PC
  • Execute the command you assembled earlier
  • Congratulations! If avrdude finished without any error you successfully flashed ethersex to your Net-IO!
  • Disconnect the power and the programmer from the Net-IO
  • Reconnect the power, your Net-IO should boot up with ethersex

previous step |