From cf4f688b4ba2438254c61ef824a4141e3e811bd4 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Sun, 9 Jun 2019 02:04:18 +0300 Subject: [PATCH] firmware upload scripts for osx some debug code removed --- compiled/DUE_16u2_reflash/reflash16u2DUE.sh | 1 + compiled/due-5100/upload.sh | 3 +++ compiled/due-5500/upload.sh | 3 +++ compiled/lighthub21/upload.sh | 3 +++ compiled/mega2560dmx-5100/upload.sh | 13 ------------- compiled/mega2560onewire-5100/upload.bat | 1 - compiled/mega2560onewire-5100/upload.sh | 1 - lighthub/modules/in_ccs811_hdc1080.cpp | 4 ++-- 8 files changed, 12 insertions(+), 17 deletions(-) create mode 100644 compiled/DUE_16u2_reflash/reflash16u2DUE.sh create mode 100755 compiled/due-5100/upload.sh create mode 100755 compiled/due-5500/upload.sh create mode 100755 compiled/lighthub21/upload.sh delete mode 100644 compiled/mega2560dmx-5100/upload.sh delete mode 100644 compiled/mega2560onewire-5100/upload.bat delete mode 100644 compiled/mega2560onewire-5100/upload.sh diff --git a/compiled/DUE_16u2_reflash/reflash16u2DUE.sh b/compiled/DUE_16u2_reflash/reflash16u2DUE.sh new file mode 100644 index 0000000..58533db --- /dev/null +++ b/compiled/DUE_16u2_reflash/reflash16u2DUE.sh @@ -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 diff --git a/compiled/due-5100/upload.sh b/compiled/due-5100/upload.sh new file mode 100755 index 0000000..cde7707 --- /dev/null +++ b/compiled/due-5100/upload.sh @@ -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 \ No newline at end of file diff --git a/compiled/due-5500/upload.sh b/compiled/due-5500/upload.sh new file mode 100755 index 0000000..f715ea6 --- /dev/null +++ b/compiled/due-5500/upload.sh @@ -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 \ No newline at end of file diff --git a/compiled/lighthub21/upload.sh b/compiled/lighthub21/upload.sh new file mode 100755 index 0000000..cde7707 --- /dev/null +++ b/compiled/lighthub21/upload.sh @@ -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 \ No newline at end of file diff --git a/compiled/mega2560dmx-5100/upload.sh b/compiled/mega2560dmx-5100/upload.sh deleted file mode 100644 index 94efc86..0000000 --- a/compiled/mega2560dmx-5100/upload.sh +++ /dev/null @@ -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 $@ diff --git a/compiled/mega2560onewire-5100/upload.bat b/compiled/mega2560onewire-5100/upload.bat deleted file mode 100644 index 02bd82c..0000000 --- a/compiled/mega2560onewire-5100/upload.bat +++ /dev/null @@ -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 diff --git a/compiled/mega2560onewire-5100/upload.sh b/compiled/mega2560onewire-5100/upload.sh deleted file mode 100644 index b22f187..0000000 --- a/compiled/mega2560onewire-5100/upload.sh +++ /dev/null @@ -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 diff --git a/lighthub/modules/in_ccs811_hdc1080.cpp b/lighthub/modules/in_ccs811_hdc1080.cpp index 4385c55..401ee29 100644 --- a/lighthub/modules/in_ccs811_hdc1080.cpp +++ b/lighthub/modules/in_ccs811_hdc1080.cpp @@ -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; }