1 Reply Latest reply on Sep 21, 2015 10:14 AM by DiegoV_Intel

    Intel edison Problems uploading sketch

    jonathanrjpereira

      This is the error message that i got in my IDE.

       

      Build options changed, rebuilding all

       

       

      Sketch uses 81,113 bytes (0%) of program storage space. Maximum is 10,000,000 bytes.

      #!/bin/sh

       

       

      starting download script

      # clupload script to invoke lsz

      # Copyright (C) 2014 Intel Corporation

      Args to shell: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\JONATH~1\AppData\Local\Temp\build5302849050521660872.tmp/SimplePost.cpp.elf COM4

      #

      COM PORT 4

      # This library is free software; you can redistribute it and/or

      Converted COM Port COM4 to tty port /dev/ttyS3

      # modify it under the terms of the GNU Lesser General Public

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

      # 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 downloadEdison" > $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

            2 [main] bash 3352 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x5D0000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

      Sending: SimplePost.cpp.elf

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

       

       

      Bytes Sent:  1024/  79772  BPS:82847    ETA 00:00

      Bytes Sent:  9216/  79772  BPS:547915  ETA 00:00

      Bytes Sent:  10240/  79772  BPS:587219  ETA 00:00

      Bytes Sent:  11264/  79772  BPS:623626  ETA 00:00

      Bytes Sent:  12288/  79772  BPS:657565  ETA 00:00

      Bytes Sent:  13312/  79772  BPS:691385  ETA 00:00

      Bytes Sent:  14336/  79772  BPS:719169  ETA 00:00

      Bytes Sent:  15360/  79772  BPS:746388  ETA 00:00

      Bytes Sent:  16384/  79772  BPS:773154  ETA 00:00

      Bytes Sent:  17408/  79772  BPS:797796  ETA 00:00

      Bytes Sent:  18432/  79772  BPS:820253  ETA 00:00

      Bytes Sent:  19456/  79772  BPS:843635  ETA 00:00

      Bytes Sent:  20480/  79772  BPS:866874  ETA 00:00

      Bytes Sent:  21504/  79772  BPS:897567  ETA 00:00

      Bytes Sent:  22528/  79772  BPS:926807  ETA 00:00

      Bytes Sent:  23552/  79772  BPS:954252  ETA 00:00

      Bytes Sent:  24576/  79772  BPS:979626  ETA 00:00

      Bytes Sent:  25600/  79772  BPS:1001678  ETA 00:00

      Bytes Sent:  26624/  79772  BPS:1026760  ETA 00:00

      Bytes Sent:  27648/  79772  BPS:1050931  ETA 00:00

      Bytes Sent:  28672/  79772  BPS:1069487  ETA 00:00

      Bytes Sent:  29696/  79772  BPS:1075977  ETA 00:00

      Bytes Sent:  30720/  79772  BPS:1084741  ETA 00:00

      Bytes Sent:  31744/  79772  BPS:1091492  ETA 00:00

      Bytes Sent:  32768/  79772  BPS:1098966  ETA 00:00

      Bytes Sent:  33792/  79772  BPS:1105393  ETA 00:00

      Bytes Sent:  34816/  79772  BPS:1107410  ETA 00:00

      Bytes Sent:  35840/  79772  BPS:1108873  ETA 00:00

      Bytes Sent:  36864/  79772  BPS:1110458  ETA 00:00

      Bytes Sent:  37888/  79772  BPS:1108286  ETA 00:00

      Bytes Sent:  38912/  79772  BPS:1113836  ETA 00:00

      Bytes Sent:  39936/  79772  BPS:1119059  ETA 00:00

      Bytes Sent:  40960/  79772  BPS:1123974  ETA 00:00

      Bytes Sent:  41984/  79772  BPS:1129024  ETA 00:00

      Bytes Sent:  43008/  79772  BPS:1136692  ETA 00:00

      Bytes Sent:  44032/  79772  BPS:1142024  ETA 00:00

      Bytes Sent:  45056/  79772  BPS:1148740  ETA 00:00

      Bytes Sent:  46080/  79772  BPS:1153929  ETA 00:00

      Bytes Sent:  47104/  79772  BPS:1161338  ETA 00:00

      Bytes Sent:  48128/  79772  BPS:1167784  ETA 00:00

      Bytes Sent:  49152/  79772  BPS:1172208  ETA 00:00

      Bytes Sent:  50176/  79772  BPS:1175767  ETA 00:00

      Bytes Sent:  51200/  79772  BPS:1181681  ETA 00:00

      Bytes Sent:  52224/  79772  BPS:1187554  ETA 00:00

      Bytes Sent:  53248/  79772  BPS:1191600  ETA 00:00

      Bytes Sent:  54272/  79772  BPS:1194757  ETA 00:00

      Bytes Sent:  55296/  79772  BPS:1197580  ETA 00:00

      Bytes Sent:  56320/  79772  BPS:1202696  ETA 00:00

      Bytes Sent:  57344/  79772  BPS:1205817  ETA 00:00

      Bytes Sent:  58368/  79772  BPS:1208469  ETA 00:00

      Bytes Sent:  59392/  79772  BPS:1213218  ETA 00:00

      Bytes Sent:  60416/  79772  BPS:1216076  ETA 00:00

      Bytes Sent:  61440/  79772  BPS:1220764  ETA 00:00

      Bytes Sent:  62464/  79772  BPS:1223486  ETA 00:00

      Bytes Sent:  63488/  79772  BPS:1228456  ETA 00:00

      Bytes Sent:  64512/  79772  BPS:1232577  ETA 00:00

      Bytes Sent:  65536/  79772  BPS:1235127  ETA 00:00

      Bytes Sent:  66560/  79772  BPS:1238784  ETA 00:00

      Bytes Sent:  67584/  79772  BPS:1241688  ETA 00:00

      Bytes Sent:  68608/  79772  BPS:1245513  ETA 00:00

      Bytes Sent:  69632/  79772  BPS:1247815  ETA 00:00

      Bytes Sent:  70656/  79772  BPS:1249507  ETA 00:00

      Bytes Sent:  71680/  79772  BPS:1253539  ETA 00:00

      Bytes Sent:  72704/  79772  BPS:1257243  ETA 00:00

      Bytes Sent:  73728/  79772  BPS:1259186  ETA 00:00

      Bytes Sent:  74752/  79772  BPS:1260507  ETA 00:00

      Bytes Sent:  75776/  79772  BPS:1263563  ETA 00:00

      Bytes Sent:  76800/  79772  BPS:1265653  ETA 00:00

      Bytes Sent:  77824/  79772  BPS:1269661  ETA 00:00

      Bytes Sent:  78848/  79772  BPS:1273280  ETA 00:00

      Bytes Sent:  79772  BPS:1234438      

       

       

      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

            0 [main] bash 7448 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x2C0000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

            2 [main] bash 2036 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x380000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

            2 [main] bash 7728 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x3E0000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

            2 [main] bash 3664 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x3C0000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

            1 [main] bash 1336 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cyggcc_s-1.dll: Loaded to different address: parent(0x4D0000) != child(0x380000)

      C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: Resource temporarily unavailable

        • 1. Re: Intel edison Problems uploading sketch
          DiegoV_Intel

          Hello jonathanrjpereira,

           

          Are you selecting the correct COM port and the correct board in the Arduino IDE? Is this the first time you try to upload a sketch?

           

          I prefer to use the Arduino IDE 1.6.0 which already includes the Edison and Galileo packages. I suggest you to try to upload a sketch with this IDE version and check if you get the same error message. The Arduino IDE 1.6.0 can be downloaded from here: Arduino IDE 1.6.0.

           

          Regards,

          Diego.