mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Integrated bootloader into Mac and Windows dists. Burn scripts now in platform dirs; make.sh builds bootloader. Set baud rate back to 9600 for backwards compatibility.
This commit is contained in:
parent
cf26421470
commit
1790624743
Binary file not shown.
@ -47,7 +47,7 @@
|
||||
/* We, Malmoitians, like slow interaction
|
||||
* therefore the slow baud rate ;-)
|
||||
*/
|
||||
#define BAUD_RATE 19200
|
||||
#define BAUD_RATE 9600
|
||||
|
||||
/* 6.000.000 is more or less 8 seconds at the
|
||||
* speed configured here
|
||||
|
@ -17,7 +17,7 @@ ISPPARAMS = -dprog=stk500 -dserial=/dev/com1 -dspeed=115200
|
||||
# You should not have to change anything below here.
|
||||
############################################################
|
||||
|
||||
DIRAVR = /usr/local/avr
|
||||
#DIRAVR = /usr/local/avr
|
||||
DIRAVRBIN = $(DIRAVR)/bin
|
||||
DIRAVRUTILS = $(DIRAVR)/utils/bin
|
||||
DIRINC = .
|
||||
|
@ -1,29 +0,0 @@
|
||||
#!/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
|
||||
# TODO: move this (and related) scripts to platform dist/ dirs
|
||||
#
|
||||
# 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
|
||||
BINDIR=../build/macosx/work/tools/avr/bin
|
||||
#PORT=/dev/tty.usbserial0
|
||||
#PORT=/dev/tty.USA19QW3b1P1.1
|
||||
PORT=/dev/tty.USA19QW1b1P1.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
|
@ -53,6 +53,7 @@ cp -r ../../core work
|
||||
echo Copying dist files...
|
||||
cp -r dist/lib work/
|
||||
cp -r dist/core work/
|
||||
cp -r dist/bootloader work/
|
||||
|
||||
### -- START BUILDING -------------------------------------------
|
||||
|
||||
@ -63,6 +64,13 @@ cd ../..
|
||||
### -- BUILD GCC ------------------------------------------------
|
||||
# in the future we will build avr-gcc and tools (if they don't exist)
|
||||
|
||||
### -- BUILD BOOTLOADER ----------------------------------------
|
||||
cd bootloader
|
||||
export DIRAVR=../build/macosx/work/tools/avr
|
||||
make
|
||||
cp ATmegaBOOT.hex ../build/macosx/work/bootloader
|
||||
cd ..
|
||||
|
||||
### -- BUILD JAVA -----------------------------------------------
|
||||
|
||||
# set classpath
|
||||
|
@ -60,6 +60,8 @@ else
|
||||
#chmod +x work/jikes.exe
|
||||
|
||||
cp dist/ICE_JNIRegistry.dll work/
|
||||
mkdir work/bootloader
|
||||
cp dist/bootloader/*.* work/bootloader
|
||||
cp dist/serial/*.* work/lib/
|
||||
mkdir work/tools
|
||||
cp dist/avr_tools.zip .
|
||||
@ -119,6 +121,13 @@ cd ../..
|
||||
|
||||
fi
|
||||
|
||||
### -- BUILD BOOTLOADER -----------------------------------------
|
||||
|
||||
cd bootloader
|
||||
export AVRDIR=../build/windows/work/tools/avr
|
||||
make
|
||||
cp ATmegaBOOT.hex ../build/windows/work/bootloader
|
||||
cd ..
|
||||
|
||||
### -- BUILD PDE ------------------------------------------------
|
||||
|
||||
@ -162,16 +171,6 @@ CORE=..\\..\\build\\$PLATFORM\\work\\lib\\core.jar
|
||||
LIBRARIES=..\\..\\build\\$PLATFORM\\work\\libraries
|
||||
|
||||
|
||||
# PARTICLES LIBRARY
|
||||
#echo Build particles library...
|
||||
#cd ../lib/particles
|
||||
#$JIKES -target 1.1 +D -d . *.java
|
||||
#rm -f library/particles.jar
|
||||
#zip -r0q library/particles.jar simong
|
||||
#rm -rf simong
|
||||
#mkdir -p $LIBRARIES/particles/library/
|
||||
#cp library/particles.jar $LIBRARIES/particles/library/
|
||||
|
||||
echo
|
||||
echo Done.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user