Quick Start Guide/Flashing

From Ethersex_Wiki
Revision as of 19:52, 4 June 2012 by Thrawnhex (talk | contribs) (Replaced the copy of "Flashing" with a short summary.)
Jump to: navigation, search

Requirements

  • AVR NET-IO
  • ISP-Programmer (we're using a Evaluation-Board made by Pollin)
  • 10-pin connector cable (from Evaluation-Board to the NET-IO)

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