earilier i mentioned a post regarding how to burn bootloader in ATmega168 using STK500.
bit to burn bootloader in ATmega8, there was some problems as the fuses, memory and lock bits of ATmega8 are different than ATmega168.
so i created a new batch file, and followed the same procedure like ATmega168, to burn bootloader in ATmega8.
the commands of batch file are given below:
: We're assuming a few things:
: 1) Your firmware is at C:\arduino-0009\bootloader8, and it is the ATmegaBOOT.hex
: 2) Your STK software is at C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe
: 3) You're trying to program a ATmega168 using the high-voltage mode of the STK-500
:If they're not, make the edits below!
:Change to firmware directory
cd C:\arduino-0009\bootloader8
: Set fuse bits, lock bits, voltages
"C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" -dATmega8 -ut5.2 -e -ua5.0 -!3686400 -lFF -LFF -fCAFF -ECA -mp -q
: Burn Arduino hex bootloader file
"C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" -dATmega8 -pf -vf -ifATmegaBOOT.hex -mp -q
: Lock it down
"C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" -dATmega8 -lFF -LFF -mp -q
@echo CHECK FOR PROBLEMS ABOVE before closing this window!
pause
Thursday, April 23, 2009
Subscribe to:
Post Comments (Atom)

That was informative.
ReplyDeleteDomain registration india