3 Replies Latest reply on Jun 6, 2014 6:23 PM by sureshn

    Uploading code in galileo fails

    sureshn

      Within Arduino IDE, uploading code to galileo works.  However, uploading code from command line as follows fails:

      lsz.exe --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" /dev/ttyS3 1

      lsz.exe --escape --binary --overwrite sdktutorial.elf /dev/ttyS3 1

      lsz.exe --escape -c "mv sdktutorial.elf /sketch/sketch.elf; chmod +x /sketch/sketch.elf" /dev/ttyS3 1

      sdktutorial.elf is code which could successfully compile from Galileo sdk which we built for windows.

       

      Galileo arduino (for windows) version is 1.5.3.

        • 1. Re: Uploading code in galileo fails
          mhahn

          is this a statement, a feature request, a bug submission?

          What do you want to achieve?

          can you send more information on what is failing?

          • 2. Re: Uploading code in galileo fails
            sureshn

            I would like to upload galileo sketches from the command line in windows.  I could upload from Arduino IDE for galileo with latest software from intel in my windows computer.  Is there a make file and/or command line tools (similar to avrdude for arduino) which we can use to compile/build and upload sketches to galileo?

            • 3. Re: Uploading code in galileo fails
              sureshn

              Problem resolved as follows:

              Install cygwin or any other linux shell

              From command line use bash and clupload_win.sh

              Upload for Intel Galileo Arduino 1.5.3 as in

              bash C:\arduinotrix\galileo\arduino-1.5.3\hardware\arduino\x86\tools\izmir\clupload_win.sh c:\arduinotrix\galileo\arduino-1.5.3\hardware\tools\x86\bin sdktutorial.elf COM4 (sdktutorial.elf is the arduino sketch which I uploaded to intel galileo on com4)