1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Added bootloader files and the programming commands

including the script which sets the correct fuses
currently working only on mac os x but easy to port
to windows/linux
This commit is contained in:
Massimo Banzi
2005-09-14 17:04:31 +00:00
parent 5432861f2a
commit 15ae9ab1b0
9 changed files with 828 additions and 300 deletions

View File

@ -0,0 +1,26 @@
#!/bin/sh
# fixmybootloader.command 25.06.2005 mbanzi
#
# Arduino project http://arduino.berlios.de
#
# quick and dirty script to set the proper fuses and lock bits
# while loading the bootloader onto a brand new arduino board
#
# very useful also when for some reasons the bootloader disappears
#
# TODO: cleanup and make it more user friendly
#
# expects an STK500 compatible programmer on the specified serial port
# if you use the parallel port programmer you need to change the dprog
# parametre
#
BINDIR=/usr/local/avr/bin
#PORT=/dev/tty.usbserial0
PORT=/dev/tty.USA19QW3b1P1.1
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_lock=0xFF
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_fuse_l=0xdf --wr_fuse_h=0xc8
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --erase --upload if=ATMegaBOOT.hex -v
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_lock=0xCF