9 Replies Latest reply on May 20, 2015 2:19 AM by MarkOg

    Transfer Incomplete 2


      Ok I am back to getting the transfer incomplete error.  I must be doing something different, but I have no idea what.

      Edison on Arduino board

      Powered and plugged into usb, com port 8.


      Thank you for your help.



      Here is the sketch:

      void setup() {


      void loop() {



      Binary sketch size: 72,750 bytes (of a 10,000,000 byte maximum) - 0% used
      E:\Ard104/hardware/tools/x86/bin/bash --verbose --noprofile E:\Ard104/hardware/arduino/edison/tools/izmir/clupload_win.sh E:\Ard104/hardware/tools/x86/bin C:\Users\Terrence\AppData\Local\Temp\build1138744007958692456.tmp/sketch_nov06a.cpp.elf COM8
      cygwin warning:
        MS-DOS style path detected: E:\Ard104/hardware/arduino/edison/tools/izmir/clupload_win.sh
        Preferred POSIX equivalent is: /cygdrive/e/Ard104/hardware/arduino/edison/tools/izmir/clupload_win.sh
        CYGWIN environment variable option "nodosfilewarning" turns off this warning.
        Consult the user's guide for more details about POSIX paths:
      starting download script

      echo "starting download script"
      echo "Args to shell:" $*
      Args to shell: E:\Ard104/hardware/tools/x86/bin C:\Users\Terrence\AppData\Local\Temp\build1138744007958692456.tmp/sketch_nov06a.cpp.elf COM8

      # 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 /

      #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

      echo "COM PORT" $com_port_id
      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"
      COM PORT 8
      echo "~sketch download" > $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
      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
      Retry 0: Got TIMEOUT

      Transfer incomplete

      # Execute the target download command

      #Download the file.
      $fixed_path/lsz.exe --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0
      Sending: sketch_nov06a.cpp.elf

      Bytes Sent:   1024/  71604   BPS:102554   ETA 00:00 
      Bytes Sent:   9216/  71604   BPS:492468   ETA 00:00 
      Bytes Sent:  67584/  71604   BPS:799972   ETA 00:00 

      <snipped to be short, let me know if you want all of the bytes sent>

      Bytes Sent:  68608/  71604   BPS:801618   ETA 00:00 
      Bytes Sent:  69632/  71604   BPS:802786   ETA 00:00 
      Bytes Sent:  70656/  71604   BPS:801898   ETA 00:00  Retry 0: Got ZCAN

      Transfer incomplete

      #mv the downloaded file to /sketch/sketch.elf
      echo "Moving downloaded file to /sketch/sketch.elf on target"
      Moving downloaded file to /sketch/sketch.elf on target
      #$fixed_path/lsz.exe --escape -c "cp sketch /sketch/sketch.elf" <> $tty_port_id 1>&0
      $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
      Retry 0: Got ZCAN

      Transfer incomplete