added run.sh and flash.sh

This commit is contained in:
Andreas Reder 2013-04-10 07:32:45 +02:00 committed by Ralf Schlatterbeck
parent 673b167f8f
commit 03b7dc8719
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
make clean TARGET=native
make TARGET=native
mv border-router.native border-router

View file

@ -0,0 +1,2 @@
#!/bin/bash
sudo avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB0 -b57600 -e -U flash:w:slip-radio.osd-merkur.hex:a -U eeprom:w:slip-radio.osd-merkur.eep:a

6
examples/osd/slip-radio/run.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
make clean TARGET=osd-merkur
make TARGET=osd-merkur
avr-size slip-radio.osd-merkur
avr-objcopy -j .text -j .data -O ihex slip-radio.osd-merkur slip-radio.osd-merkur.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex slip-radio.osd-merkur slip-radio.osd-merkur.eep