osd-contiki/examples/osd/rpl-border-router/run.sh
2014-04-15 07:27:25 +02:00

7 lines
No EOL
529 B
Bash
Executable file

#!/bin/bash
make clean TARGET=osd-er-lp24
make TARGET=osd-er-lp24
avr-size -C --mcu=MCU=atmega128rfa1 border-router.osd-er-lp24
avr-objcopy -j .text -j .data -O ihex border-router.osd-er-lp24 border-router.osd-er-lp24.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex border-router.osd-er-lp24 border-router.osd-er-lp24.eep
#sudo avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB0 -b57600 -e -U flash:w:border-router.osd-er-lp24.hex:a -U eeprom:w:border-router.osd-er-lp24.eep:a