mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Reduced bootloader to less than 1024 bytes (512 words); high fuse byte now 0xca instead of 0xc8; bootloader segment now starts at (byte 0x1C00 instead of 0x1800; word 0xE00 instead of 0xC00)
This commit is contained in:
18
build/macosx/dist/bootloader/burn.command
vendored
18
build/macosx/dist/bootloader/burn.command
vendored
@ -17,13 +17,19 @@
|
||||
# parametre
|
||||
#
|
||||
|
||||
#BINDIR=/usr/local/avr/bin
|
||||
BINDIR=../build/macosx/work/tools/avr/bin
|
||||
#PORT=/dev/tty.usbserial0
|
||||
#PORT=/dev/tty.USA19QW3b1P1.1
|
||||
PORT=/dev/tty.USA19QW1b1P1.1
|
||||
BINDIR=../tools/avr/bin
|
||||
PORT=/dev/tty.USA19QW?b1P1.1
|
||||
|
||||
# unlock bootloader segment
|
||||
$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
|
||||
|
||||
# set fuses
|
||||
# bootloader size of 512 words; from 0xE00-0xFFF
|
||||
# clock speed of 16 MHz, external quartz
|
||||
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_fuse_l=0xdf --wr_fuse_h=0xca
|
||||
|
||||
# upload bootloader
|
||||
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --erase --upload if=ATMegaBOOT.hex -v
|
||||
|
||||
# lock bootloader segment
|
||||
$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_lock=0xCF
|
||||
|
Reference in New Issue
Block a user