3 Replies Latest reply on Jun 19, 2015 5:12 PM by CMata_Intel

    No compila Galileo Gen 2

    Zanarkand

           Estaba empezando con el intel galileo, conecte el galileo sin problema, coloque los drivers e hice un simple programa para encender y apagar un led.

           luego empece a hacer un programa con la finalidad de utilizar un sensor de ultra sonido y al compilar el compilador me dice acceso denegado, intente colocar otra vez el programa para encender y apagar el led y no me dejaba el compilador.

           no se si ayude pero copiare y pegare lo que me dice el compilador

       

      Sketch uses 83.495 bytes (0%) of program storage space. Maximum is 10.000.000 bytes.

      #!/bin/sh

      starting download script

       

       

      # clupload script to invoke lsz

      Args to shell: C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel\hardware\tools\x86\bin C:\Users\ALEJAN~1\AppData\Local\Temp\build7159181181268507617.tmp/sketch_jun15a.cpp.elf COM4

      # Copyright (C) 2014 Intel Corporation

      #

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

      COM PORT 4

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

      Converted COM Port COM4 to tty port /dev/ttyS3

      # License as published by the Free Software Foundation; either

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

      # 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

      C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 42: /dev/ttyS3: No such file or directory

      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

      C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 46: /dev/ttyS3: No such file or directory

      # 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

      C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 51: /dev/ttyS3: No such file or directory

       

       

      #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.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0

      C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 56: /dev/ttyS3: No such file or directory

       

       

      espero su ayuda, saludos

        • 1. Re: No compila Galileo Gen 2
          Zanarkand

          i have started with intel galileo, installed de drivers and compiled a program that turn on and off a led, i had no problem doing that but then i try a program to use a ultrasonic sensor, like a did with my arduino before. but the program never compiled and tell me that i dont have permison...it seems extrange to me so i rewrite the program that turn on and off a led. and since then i cant compilate on the galileo.

          this is what the program says

           

          Sketch uses 83.495 bytes (0%) of program storage space. Maximum is 10.000.000 bytes.

          #!/bin/sh

          starting download script

           

           

          # clupload script to invoke lsz

          Args to shell: C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel\hardware\tools\x86\bin C:\Users\ALEJAN~1\AppData\Local\Temp\build7159181181268507617.tmp/sketch_jun15a.cpp.elf COM4

          # Copyright (C) 2014 Intel Corporation

          #

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

          COM PORT 4

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

          Converted COM Port COM4 to tty port /dev/ttyS3

          # License as published by the Free Software Foundation; either

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

          # 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

          C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 42: /dev/ttyS3: No such file or directory

          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

          C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 46: /dev/ttyS3: No such file or directory

          # 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

          C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 51: /dev/ttyS3: No such file or directory

           

           

          #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.exe" --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0

          C:\Users\Alejandro Gorrin\Desktop\Galileo\arduino-1.6.0+Intel/hardware/intel/i586-uclibc/tools/izmir/clupload_win.sh: line 56: /dev/ttyS3: No such file or directory

           

          thanks

          • 2. Re: No compila Galileo Gen 2
            DiegoV_Intel

            Hello Zanarkand,

             

            I have gotten some issues with the Arduino IDE and the Galileo board related to the COM port. In those cases I have to unplug the Galileo board (Serial cable) and close the Arduino IDE. Then I connect the board again and check in the Device Manager if a COM port is being assigned to the board. Finally I open the Arduino IDE and try to upload a sketch again. I suggest you to try this; the issue could be resolved with it.

             

            Regards,

            Diego.

            • 3. Re: No compila Galileo Gen 2
              CMata_Intel

              Hi Zanarkand

               

              Have you been able to use the Arduino IDE again? Did the suggestion from Diego worked for you?

               

              Regards;

              CMata