9 Replies Latest reply on Feb 12, 2015 3:02 PM by Chris.Charlton Branched to a new discussion.

    Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5

    RobertTheWriter

      Hi

      I've just set up my Arduino Galileo on my Mac.

       

      Using the 'Blink' example - it compiles okay, but then fails to upload/transfer.

       

      Error log below.

       

      Any answers?

      Thanks

      Robert

      ====

       

      Binary sketch size: 49,098 bytes (of a 262,144 byte maximum) - 18% used

      starting download script

      #!/bin/sh

      Args to shell: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/x86/bin /var/folders/6h/8k0glk896537fzb216fj0xwh0000gn/T/build6333886195766888193.tmp/Blink.cpp.elf COM1

      #

      Serial Port PORT (note: should be /dev/cu.xxxxxx for OSX)

      echo "starting download script"

      Using tty Port COM1

      echo "Args to shell:" $*

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

      #

      # ARG 1: Path to lsz executable.

      # ARG 2: Elf File to download

      # ARG 3: TTY port to use.

      #

      #path may contain \ need to change all to /

      path_to_exe=$1

      fixed_path=${path_to_exe//\\/\/}

      #

      tty_port_id=$3

      echo "Serial Port PORT" $com_port_id "(note: should be /dev/cu.xxxxxx for OSX)"

      echo "Using tty Port" $tty_port_id

      #

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

      echo "~sketch download" > $tty_port_id

      #Give the host time to stop the process and wait for download

      sleep 1

      #

      Deleting existing sketch on target

      #Move the existing sketch on target.

      echo "Deleting existing sketch on target"

      $fixed_path/lsz --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" < $tty_port_id > $tty_port_id

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

       

      Transfer incomplete

      #$fixed_path/lsz.exe --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" < $tty_port_id > $tty_port 1>&0

      #

      # Execute the target download command

      #

      #Download the file.

      host_file_name=$2

      $fixed_path/lsz --escape --binary --overwrite $host_file_name < $tty_port_id  > $tty_port_id

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

       

      Transfer incomplete

      #

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

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

      Retry 0: Got ZNAK

       

      Transfer incomplete

      #

      #

        • 1. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
          Rod_H

          Check if the correct port is selected, Tools->Serial Port

          You should see a check mark in front of /dev/cu.usbmodemxxxxx where xxxxx is hex number, as example my mac shows /dev/cu.usbmodemfa141.

          • 2. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
            MarcPous

            Hi! i have the same problem but my Serial Port is correctly checked on the Arduino IDE. What can happen?

             

            thanks!

             

             

            Binary sketch size: 75.907 bytes (of a 10.000.000 byte maximum) - 0% used

            starting download script

            #!/bin/sh

            #

            Args to shell: /Users/mpous/Downloads/Arduino Edison.app/Contents/Resources/Java/hardware/tools/x86/bin /var/folders/SD/SDgczYLXFXqZHw4DlMP-H++++TM/-Tmp-/build5634497438882380740.tmp/firstv1sion.cpp.elf /dev/cu.usbserial-A102GW1Y

            echo "starting download script"

            Serial Port PORT (note: should be /dev/cu.xxxxxx for OSX)

            echo "Args to shell:" $*

            Using tty Port /dev/cu.usbserial-A102GW1Y

            #

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

            # ARG 1: Path to lsz executable.

            # ARG 2: Elf File to download

            # ARG 3: TTY port to use.

            #

            #path may contain \ need to change all to /

            path_to_exe=$1

            fixed_path=${path_to_exe//\\/\/}

            #

            tty_port_id=$3

            echo "Serial Port PORT" $com_port_id "(note: should be /dev/cu.xxxxxx for OSX)"

            echo "Using tty Port" $tty_port_id

            #

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

            echo "~sketch download" > $tty_port_id

            #Give the host time to stop the process and wait for download

            sleep 1

            #

            #Move the existing sketch on target.

            echo "Deleting existing sketch on target"

            Deleting existing sketch on target

            "$fixed_path/lsz" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" < $tty_port_id > $tty_port_id

            Retry 0: Got TIMEOUT

            Retry 0: Got TIMEOUT

             

             

            Transfer incomplete

            #"$fixed_path/lsz.exe" --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" < $tty_port_id > $tty_port 1>&0

            #

            # Execute the target download command

            #

            #Download the file.

            host_file_name=$2

            "$fixed_path/lsz" --escape --binary --overwrite $host_file_name < $tty_port_id  > $tty_port_id

            Retry 0: Timeout on pathname

             

             

            Transfer incomplete

            #

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

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

            Retry 0: Got TIMEOUT

            Retry 0: Got TIMEOUT

             

             

            Transfer incomplete

            #

            #

            • 3. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
              Intel_Raad

              Marc, which usb connection are you using?


              -Raad

              • 4. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                anpistof

                Hello everybody, thanks to some friends

                It seems that Flashing Edison (wired) - Linux

                solved the problem.

                 

                An

                • 5. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                  MarcPous

                  Hi Raad, i'm using cu/usbserial...

                  • 6. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                    Intel_Raad

                    Marc, you are not using the correct device, you should use /dev/cu.usbmodem#d###, where # is a digit 0-9, for example /dev/cu.usbmodem1d113.

                    • 7. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                      Stan_Gifford

                      I was also bogged down at this point - and in fact the EDI did not see a cu.usbmodem.

                       

                      The actual issue was a dodgy USB cable - although the cable worked fine on an Arduino Due suspect (cheap chinese cable) that it was a bit dodgy.

                       

                      Ran blink fine.

                       

                      Ran the Prime number test which took (from memory 1760 msec) on the Due and it took 11 msec on the Arduino Edison......................

                       

                      Stan

                      • 8. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                        Rose-Hulman

                        +1 for dodgy USB cable issues.   Too funny.  Swapped out my cheap USB cable then it all worked fine.  Thanks Stan.

                        • 9. Re: Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5
                          Chris.Charlton

                          On Mac, I noticed the "Edison" partition auto-mounts, so be sure to unmount that drive before uploading new code. Fixed my problem.