Content deleted Content added
→Setup Tools For Development: - add programmer eg. |
→Setup Tools For Development: - more cdetail description for programmer |
||
Line 26:
**using apt-get command to install them, typing by "apt-get install binutils-avr gcc-avr avr-libc uisp"
*[http://www.linuxfocus.org/English/November2004/article352.shtml#352lfindex8 prepare a simple avr serial programmer]
**examples to use the above programmer with uisp(assume in ATmega8535, by above simple serial programmer, printer port, debian linux box, hex file as avrm8ledtest.hex)
<pre><nowiki>
Read the Fuse : uisp -dprog=dapa --rd_fuses -dpart=ATmega8535
Erase Whole Chip : uisp -dlpt=/dev/parport0 --erase -dprog=dapa -dpart=ATmega8535
Program Chip : uisp -dlpt=/dev/parport0 --upload if=avrm8ledtest.hex -dprog=dapa -v=3 --hash=32 -dpart=ATmega8535
</nowiki></pre>
* if you buy a new chip, you cannot program this chip by the above serial programmer. You must have a avr parallel programmer to set the Fuse High Byte - SPIEN bit to logic LOW. Please take a look of [http://www.atmel.com/dyn/resources/prod_documents/doc2502.pdf page 236 of atmel datasheet 8535 as example]. Then
|