Trying to use Intel Galileo Gen 2 board, But I'm to upload a basic blink code

I'm getting the following error while trying to upload the Blink code -->
Below is the Error :

Sketch uses 80265 bytes (0%) of program storage space. Maximum is 10000000 bytes.
"C:\Users\Sumith Raj Shetty\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin/bash.exe" "--verbose" "--noprofile" "C:\Users\Sumith Raj Shetty\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh" "C:\Users\Sumith Raj Shetty\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin" "C:\Users\Sumith Raj Shetty\AppData\Local\Temp\arduino\sketches\3738505C1C8620006BC13CCD666A98D5/sketch_dec1a.ino.elf" "COM8"
cygwin warning:
  MS-DOS style path detected: C:\Users\Sumith Raj Shetty\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh
  Preferred POSIX equivalent is: /cygdrive/c/Users/Sumith Raj Shetty/AppData/Local/Arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0/clupload/cluploadGalileo_win.sh
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
starting download script
Args to shell: C:\Users\Sumith Raj Shetty\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\Sumith Raj Shetty\AppData\Local\Temp\arduino\sketches\3738505C1C8620006BC13CCD666A98D5/sketch_dec1a.ino.elf COM8
COM PORT 8
Converted COM Port COM8 to tty port /dev/ttyS7
Sending Command String to move to download if not already in download mode
Deleting existing sketch on target
#!/bin/sh

clupload script to invoke lsz 
Copyright (C) 2014 Intel Corporation
 
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

#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 incomplete
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
Moving downloaded file to /sketch/sketch.elf on target
lsz: cannot open C:\Users\Sumith: No such file or directory
lsz: cannot open Raj: No such file or directory
lsz: cannot open Shetty\AppData\Local\Temp\arduino\sketches\3738505C1C8620006BC13CCD666A98D5/sketch_dec1a.ino.elf: No such file or directory

Can't open any requested files.

Transfer incomplete

#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
Retry 0: Got TIMEOUT

Transfer incomplete

If anyone is aware how to proceed further please help. Thank you.

Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.

Please edit your post and apply code tags to the output that you posted so we don't have to look at the screaming bold; thanks.


I'm not familiar with your board so can't help further.

Noted. Thank you.

Spaces in your username are causing the problem, the upload script can't handle them.
Here's an updated version:
cluploadGalileo_win.sh.txt (2.1 KB)

Remove the .txt from the name, the forum does not allow .sh files.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.