--- In AVR-Chat@yahoogroups.com, "Jim Hatley" <james.hatley@...> wrote: >You might consider using a couple simple batch files, one >for setting the fuses and another for programming the part. You should be able to do it with just one. The example below shows how you can set the fuses and program the part in one easy operation. This particular batch file is for programming using an AVRISP but it probably could be modified fairly easily for other programmers. Note that the fuse programming is done at a lower speed since the raw device is typically running at 1MHz. The ISP speed specified in the second invocation of stk500.exe may have to be changed if your device is operating at a low frequency. The ISP frequency must be less than 1/4 of the device operating frequency. --------- batch file ------------ @echo off set prog="C:\Program Files\Atmel\AVR Tools\Stk500\stk500.exe" set port=com1 set device=ATmega644 set efuses=fd set fuses=d4d7 set lockBits=cc set hex=myApp.hex set eeprom=myApp.eep %prog% -c%port% -d%device% -I100KHz -e -E%efuses% -f%fuses% %prog% -c%port% -d%device% -I4MHz -if%hex% -pf -vf -ie%eeprom% -pe -ve -l%lockBits% In our manufacturing process we actually a Perl script that verifies the chip signature, programs the device, sets the fuses and then runs some tests. The script loops repeatedly with operator interaction at some of the steps, allowing fairly quick manufacturing test process. Don Kinzer ZBasic Microcontrollers http://www.zbasic.net
Message
Re: Fuse Question
2009-03-25 by Don Kinzer
Attachments
- No local attachments were found for this message.