6 Replies Latest reply on Nov 11, 2014 7:49 AM by Intel_Alvarado

    Cant Upload Projects via the Arduino Enviroment

    hutley421

      hello,

       

      everytime i try to upload a project to my intel galileo i get this error:

       

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=C:\arduino-1.5.3/hardware/tools/x86/i586-poky-linux-uclibc -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -D__ARDUINO_X86__ -Xassembler -mquark-strip-lock=yes -march=i586 -m32 -DARDUINO=153 -IC:\arduino-1.5.3\hardware\arduino\x86\cores\arduino -IC:\arduino-1.5.3\hardware\arduino\x86\variants\galileo_fab_d C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Telnet_and_IPCONFIG.cpp -o C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Telnet_and_IPCONFIG.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_common.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_nc.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_sc.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\i2c.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\interrupt.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\mux.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\sysfs.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\trace.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\wiring_analog.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\wiring_digital.c.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\IPAddress.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\main.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Print.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\pulseIn.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\RingBuffer.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Stream.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Tone.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\TTYUART.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\UtilTime.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\WMath.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\WString.cpp.o

        Using previously compiled: C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\variant.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_common.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_nc.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\fast_gpio_sc.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\i2c.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\interrupt.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\mux.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\sysfs.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\trace.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\wiring_analog.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\wiring_digital.c.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\IPAddress.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\main.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Print.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\pulseIn.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\RingBuffer.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Stream.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Tone.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\TTYUART.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\UtilTime.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\WMath.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\WString.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar rcs C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\variant.cpp.o

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=C:\arduino-1.5.3/hardware/tools/x86/i586-poky-linux-uclibc -Os -Wl,--gc-sections -march=i586 -o C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/Telnet_and_IPCONFIG.cpp.elf C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp\Telnet_and_IPCONFIG.cpp.o C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/core.a -LC:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp -lm -lpthread

      C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-strip C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/Telnet_and_IPCONFIG.cpp.elf

      Binary sketch size: 51,079 bytes (of a 262,144 byte maximum) - 19% used

      C:\arduino-1.5.3/hardware/tools/x86/bin/bash --verbose --noprofile C:\arduino-1.5.3/hardware/arduino/x86/tools/izmir/clupload_win.sh C:\arduino-1.5.3/hardware/tools/x86/bin C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/Telnet_and_IPCONFIG.cpp.elf COM2

      cygwin warning:

        MS-DOS style path detected: C:\arduino-1.5.3/hardware/arduino/x86/tools/izmir/clupload_win.sh

        Preferred POSIX equivalent is: /cygdrive/c/arduino-1.5.3/hardware/arduino/x86/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:

          http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

      #!/bin/sh

       

       

      echo "starting download script"

      starting download script

      echo "Args to shell:" $*

       

       

      Args to shell: C:\arduino-1.5.3/hardware/tools/x86/bin C:\Users\Edward\AppData\Local\Temp\build3250693603162930425.tmp/Telnet_and_IPCONFIG.cpp.elf COM2

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

      COM PORT 2

      echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id

      Converted COM Port COM2 to tty port /dev/ttyS1

       

       

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

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

      echo "~sketch download" > $tty_port_id

       

       

      #Move the existing sketch on target.

      echo "Deleting existing sketch on target"

      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: Telnet_and_IPCONFIG.cpp.elf

       

       

      Bytes Sent:  1024/  50688  BPS:78762    ETA 00:00

      Bytes Sent:  9216/  50688  BPS:460752  ETA 00:00

      Bytes Sent:  10240/  50688  BPS:487570  ETA 00:00

      Bytes Sent:  11264/  50688  BPS:536327  ETA 00:00

      Bytes Sent:  12288/  50688  BPS:558492  ETA 00:00

      Bytes Sent:  13312/  50688  BPS:578730  ETA 00:00

      Bytes Sent:  14336/  50688  BPS:597281  ETA 00:00

      Bytes Sent:  15360/  50688  BPS:639944  ETA 00:00

      Bytes Sent:  16384/  50688  BPS:606767  ETA 00:00

      Bytes Sent:  17408/  50688  BPS:644690  ETA 00:00

      Bytes Sent:  18432/  50688  BPS:658236  ETA 00:00

      Bytes Sent:  19456/  50688  BPS:694805  ETA 00:00

      Bytes Sent:  20480/  50688  BPS:706156  ETA 00:00

      Bytes Sent:  21504/  50688  BPS:716750  ETA 00:00

      Bytes Sent:  22528/  50688  BPS:703954  ETA 00:00

      Bytes Sent:  23552/  50688  BPS:713651  ETA 00:00

      Bytes Sent:  24576/  50688  BPS:702129  ETA 00:00

      Bytes Sent:  25600/  50688  BPS:691834  ETA 00:00

      Bytes Sent:  26624/  50688  BPS:700574  ETA 00:00

      Bytes Sent:  27648/  50688  BPS:708867  ETA 00:00

      Bytes Sent:  28672/  50688  BPS:699264  ETA 00:00

      Bytes Sent:  29696/  50688  BPS:706995  ETA 00:00

      Bytes Sent:  30720/  50688  BPS:698132  ETA 00:00

      Bytes Sent:  31744/  50688  BPS:705373  ETA 00:00

      Bytes Sent:  32768/  50688  BPS:712300  ETA 00:00

      Bytes Sent:  33792/  50688  BPS:718931  ETA 00:00

      Bytes Sent:  34816/  50688  BPS:710485  ETA 00:00

      Bytes Sent:  35840/  50688  BPS:716755  ETA 00:00

      Bytes Sent:  36864/  50688  BPS:708881  ETA 00:00

      Bytes Sent:  37888/  50688  BPS:714812  ETA 00:00

      Bytes Sent:  38912/  50688  BPS:720538  ETA 00:00

      Bytes Sent:  39936/  50688  BPS:726055  ETA 00:00

      Bytes Sent:  40960/  50688  BPS:718545  ETA 00:00

      Bytes Sent:  41984/  50688  BPS:711543  ETA 00:00

      Bytes Sent:  43008/  50688  BPS:716751  ETA 00:00

      Bytes Sent:  44032/  50688  BPS:710146  ETA 00:00

      Bytes Sent:  45056/  50688  BPS:703955  ETA 00:00

      Bytes Sent:  46080/  50688  BPS:708878  ETA 00:00

      Bytes Sent:  47104/  50688  BPS:713652  ETA 00:00

      Bytes Sent:  48128/  50688  BPS:707722  ETA 00:00

      Bytes Sent:  49152/  50688  BPS:712305  ETA 00:00

      Bytes Sent:  50176/  50688  BPS:706653  ETA 00:00

      Bytes Sent:  50688  BPS:649803                        

       

       

      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"

      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

       

       

      Transfer complete

       

       

       

      the project im uploading is:

       

      void setup() {

        // put your setup code here, to run once:

      system("telnetd -l /bin/sh");

      }

       

       

      void loop() {

        // put your main code here, to run repeatedly:

        system("ifconfig eth0 > /dev/ttyGSO");

        sleep(10);

      }

      the project has worked before but now doesn't... im running yocto poky on the sd.

       

      ive tried changing the com port, rebooting both my pc and the galileo, reset button, re making the sd but nothing has worked

       

      many thanks

      ed