Hello everyone, im using Arduino intel Galileo gen 2
Here my code:
https://github.com/rodrigo-xavier/GuitarHero/tree/remove_trail_time/arduino/solenoide_controller
When compile, i obtain the messages below, okay until here, "transfer complete", but not is executing in serial monitor, anyone have an solution?
#!/bin/sh
starting download script
Args to shell: C:\Users\cyber\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\cyber\AppData\Local\Temp\arduino_build_819933/solenoide_controller.ino.elf COM6
clupload script to invoke lsz
COM PORT 6
Copyright (C) 2014 Intel Corporation
Converted COM Port COM6 to tty port /dev/ttyS5
Sending Command String to move to download if not already in download mode
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
echo "starting download script"
echo "Args to shell:" $*
ARG 1: Path to lsz executable.
ARG 2: Elf File to download
ARG 3: COM port to use.
#path contains \ need to change all to /
path_to_exe=$1
fixed_path=${path_to_exe//\//}
#COM ports are not always setup to be addressed via COM for redirect.
#/dev/ttySx are present. Howwever, COMy -> /dev/ttySx where x = y - 1
com_port_arg=$3
com_port_id=${com_port_arg/COM/}
echo "COM PORT" $com_port_id
tty_port_id=/dev/ttyS$((com_port_id-1))
echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id
echo "Sending Command String to move to download if not already in download mode"
echo "~sketch downloadGalileo" > $tty_port_id
Deleting existing sketch on target
#Move the existing sketch on target.
echo "Deleting existing sketch on target"
"$fixed_path/lsz.exe" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" <> $tty_port_id 1>&0
Transfer complete
Execute the target download command
#Download the file.
host_file_name=$2
"$fixed_path/lsz.exe" --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0
Sending: solenoide_controller.ino.elf
Bytes Sent: 1024/ 87488 BPS:161486 ETA 00:00
Bytes Sent: 9216/ 87488 BPS:901665 ETA 00:00
Bytes Sent: 10240/ 87488 BPS:952905 ETA 00:00
Bytes Sent: 11264/ 87488 BPS:1003556 ETA 00:00
Bytes Sent: 12288/ 87488 BPS:1044268 ETA 00:00
Bytes Sent: 13312/ 87488 BPS:1069831 ETA 00:00
Bytes Sent: 14336/ 87488 BPS:1105057 ETA 00:00
Bytes Sent: 15360/ 87488 BPS:1122225 ETA 00:00
Bytes Sent: 16384/ 87488 BPS:1134462 ETA 00:00
Bytes Sent: 17408/ 87488 BPS:1157055 ETA 00:00
Bytes Sent: 18432/ 87488 BPS:1174904 ETA 00:00
Bytes Sent: 19456/ 87488 BPS:1194052 ETA 00:00
Bytes Sent: 20480/ 87488 BPS:1210324 ETA 00:00
Bytes Sent: 21504/ 87488 BPS:1231256 ETA 00:00
Bytes Sent: 22528/ 87488 BPS:1260231 ETA 00:00
Bytes Sent: 23552/ 87488 BPS:1286004 ETA 00:00
Bytes Sent: 24576/ 87488 BPS:1314640 ETA 00:00
Bytes Sent: 25600/ 87488 BPS:1342980 ETA 00:00
Bytes Sent: 26624/ 87488 BPS:1370034 ETA 00:00
Bytes Sent: 27648/ 87488 BPS:1395441 ETA 00:00
Bytes Sent: 28672/ 87488 BPS:1411434 ETA 00:00
Bytes Sent: 29696/ 87488 BPS:1418480 ETA 00:00
Bytes Sent: 30720/ 87488 BPS:1424657 ETA 00:00
Bytes Sent: 31744/ 87488 BPS:1428746 ETA 00:00
Bytes Sent: 32768/ 87488 BPS:1428603 ETA 00:00
Bytes Sent: 33792/ 87488 BPS:1433864 ETA 00:00
Bytes Sent: 34816/ 87488 BPS:1432103 ETA 00:00
Bytes Sent: 35840/ 87488 BPS:1430048 ETA 00:00
Bytes Sent: 36864/ 87488 BPS:1428389 ETA 00:00
Bytes Sent: 37888/ 87488 BPS:1426286 ETA 00:00
Bytes Sent: 38912/ 87488 BPS:1424873 ETA 00:00
Bytes Sent: 39936/ 87488 BPS:1423180 ETA 00:00
Bytes Sent: 40960/ 87488 BPS:1421823 ETA 00:00
Bytes Sent: 41984/ 87488 BPS:1420197 ETA 00:00
Bytes Sent: 43008/ 87488 BPS:1416503 ETA 00:00
Bytes Sent: 44032/ 87488 BPS:1415543 ETA 00:00
Bytes Sent: 45056/ 87488 BPS:1414272 ETA 00:00
Bytes Sent: 46080/ 87488 BPS:1413146 ETA 00:00
Bytes Sent: 47104/ 87488 BPS:1412283 ETA 00:00
Bytes Sent: 48128/ 87488 BPS:1410258 ETA 00:00
Bytes Sent: 49152/ 87488 BPS:1408605 ETA 00:00
Bytes Sent: 50176/ 87488 BPS:1407734 ETA 00:00
Bytes Sent: 51200/ 87488 BPS:1406783 ETA 00:00
Bytes Sent: 52224/ 87488 BPS:1405265 ETA 00:00
Bytes Sent: 53248/ 87488 BPS:1404068 ETA 00:00
Bytes Sent: 54272/ 87488 BPS:1399878 ETA 00:00
Bytes Sent: 55296/ 87488 BPS:1398585 ETA 00:00
Bytes Sent: 56320/ 87488 BPS:1397376 ETA 00:00
Bytes Sent: 57344/ 87488 BPS:1392957 ETA 00:00
Bytes Sent: 58368/ 87488 BPS:1388290 ETA 00:00
Bytes Sent: 59392/ 87488 BPS:1388601 ETA 00:00
Bytes Sent: 60416/ 87488 BPS:1388168 ETA 00:00
Bytes Sent: 61440/ 87488 BPS:1387405 ETA 00:00
Bytes Sent: 62464/ 87488 BPS:1387099 ETA 00:00
Bytes Sent: 63488/ 87488 BPS:1386713 ETA 00:00
Bytes Sent: 64512/ 87488 BPS:1381706 ETA 00:00
Bytes Sent: 65536/ 87488 BPS:1382263 ETA 00:00
Bytes Sent: 66560/ 87488 BPS:1382315 ETA 00:00
Bytes Sent: 67584/ 87488 BPS:1381998 ETA 00:00 Moving downloaded file to /sketch/sketch.elf on target
Bytes Sent: 68608/ 87488 BPS:1383279 ETA 00:00
Bytes Sent: 69632/ 87488 BPS:1383451 ETA 00:00
Bytes Sent: 70656/ 87488 BPS:1379405 ETA 00:00
Bytes Sent: 71680/ 87488 BPS:1379228 ETA 00:00
Bytes Sent: 72704/ 87488 BPS:1378978 ETA 00:00
Bytes Sent: 73728/ 87488 BPS:1378812 ETA 00:00
Bytes Sent: 74752/ 87488 BPS:1379135 ETA 00:00
Bytes Sent: 75776/ 87488 BPS:1378445 ETA 00:00
Bytes Sent: 76800/ 87488 BPS:1378392 ETA 00:00
Bytes Sent: 77824/ 87488 BPS:1377194 ETA 00:00
Bytes Sent: 78848/ 87488 BPS:1377881 ETA 00:00
Bytes Sent: 79872/ 87488 BPS:1377766 ETA 00:00
Bytes Sent: 80896/ 87488 BPS:1377560 ETA 00:00
Bytes Sent: 81920/ 87488 BPS:1378032 ETA 00:00
Bytes Sent: 82944/ 87488 BPS:1377965 ETA 00:00
Bytes Sent: 83968/ 87488 BPS:1377764 ETA 00:00
Bytes Sent: 84992/ 87488 BPS:1377591 ETA 00:00
Bytes Sent: 86016/ 87488 BPS:1377466 ETA 00:00
Bytes Sent: 87040/ 87488 BPS:1380008 ETA 00:00
Bytes Sent: 87488 BPS:1274367
Transfer complete
#mv the downloaded file to /sketch/sketch.elf
target_download_name="${host_file_name##*/}"
echo "Moving downloaded file to /sketch/sketch.elf on target"
"$fixed_path/lsz.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
Transfer complete
note.h (3.53 KB)
queue.h (1.83 KB)
solenoide_controller.ino (6.13 KB)