firmware upload scripts for osx

some debug code removed
This commit is contained in:
2019-06-09 02:04:18 +03:00
parent 8076625704
commit cf4f688b4b
8 changed files with 12 additions and 17 deletions

View File

@@ -0,0 +1 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -c arduino -P /dev/cu.usbmodem1411 -b 19200 -p m16u2 -vvv -U flash:w:16u2.hex:i

3
compiled/due-5100/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1451
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

3
compiled/due-5500/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1411
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

3
compiled/lighthub21/upload.sh Executable file
View File

@@ -0,0 +1,3 @@
export PORT=cu.usbmodem1451
echo . | stty -f /dev/$PORT speed 1200
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R

View File

@@ -1,13 +0,0 @@
#!/bin/bash
echo $@
killall avrdude
echo Reset..
#/usr/bin/curl "http://192.168.88.31/console/reset"
echo AvrDude..
#/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -Pnet:192.168.88.31:23 $@
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -Pnet:192.168.88.2:23000 $@
#/usr/bin/curl "http://192.168.8.94/console/reset"
#echo AvrDude..
#/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -Pnet:192.168.8.94:23 $@

View File

@@ -1 +0,0 @@
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com3 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -1 +0,0 @@
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P /dev/cu.usbmodem1411 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i

View File

@@ -44,11 +44,11 @@ CCS811ready = true;
//returnCode = ccs811.setDriveMode(1);
//printDriverError(returnCode);
/*
delay(2000);Poll();
delay(2000);Poll();
delay(2000);Poll();
delay(2000);
delay(2000); */
return 1;
}