1 Reply Latest reply on Nov 3, 2014 11:24 AM by DiegoV_Intel

    unable to upload blink galileo2/linux

    fdecomite

      Can't even see ttyAMC0 (arduino ide connected to ttyS0). Here under is the transcript of what (didn't) happen.

      Any hint ?

       

      Thanks

       

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       

      Binary sketch size: 83 475 bytes (of a 10 000 000 byte maximum) - 0% used

      #!/bin/sh

      starting download script

       

      Args to shell: /home/francesco/arduino-1.5.3-Intel.1.0.4/hardware/tools /tmp/build752773839072062336.tmp/Blink.cpp.elf /dev/ttyS0

      echo "starting download script"

      Serial Port PORT

      echo "Args to shell:" $*

      Using tty Port /dev/ttyS0

      #

      Sending Command String to move to download if not already in download mode

      # ARG 1: Path to lsz executable.

      # ARG 2: Elf File to download

      # ARG 3: TTY port to use.

      #

      #path may contain \ need to change all to /

      path_to_exe=$1

      fixed_path=${path_to_exe//\\/\/}

      #

      tty_port_id=$3

      echo "Serial Port PORT" $com_port_id

      echo "Using tty Port" $tty_port_id

      #

      echo "Sending Command String to move to download if not already in download mode"

      echo "~sketch download" > $tty_port_id

      #Give the host time to stop the process and wait for download

      sleep 1

      #

      Deleting existing sketch on target

      #Move the existing sketch on target.

      echo "Deleting existing sketch on target"

      "$fixed_path/lsz" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" < $tty_port_id > $tty_port_id

      Retry 0: Got TIMEOUT

      Retry 0: Got TIMEOUT

       

      Transfer incomplete

      #

      # Execute the target download command

      #

      #Download the file.

      host_file_name=$2

      "$fixed_path/lsz" --escape --binary --overwrite $host_file_name < $tty_port_id  > $tty_port_id

      Retry 0: Timeout on pathname

       

      Transfer incomplete

      #

      #mv the downloaded file to /sketch/sketch.elf

      target_download_name="${host_file_name##*/}"

      Moving downloaded file to /sketch/sketch.elf on target

      echo "Moving downloaded file to /sketch/sketch.elf on target"

      "$fixed_path/lsz" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" < $tty_port_id > $tty_port_id

      Retry 0: Got TIMEOUT

      Retry 0: Got TIMEOUT

       

      Transfer incomplete

      #

      #