Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Arduino 1.5.3 IDE Galileo on Mac OSX 10.7.5

RHunt7
Beginner
1,616 Views

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

#

#

0 Kudos
1 Solution
idata
Community Manager
289 Views

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.

View solution in original post

9 Replies
idata
Community Manager
290 Views

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.

View solution in original post

MPous
Innovator
289 Views

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

#

#

RaadH_Intel
Employee
289 Views

Marc, which usb connection are you using?

 

-Raad

 

APist1
Beginner
289 Views

Hello everybody, thanks to some friends

It seems that

solved the problem.

An

MPous
Innovator
289 Views

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

RaadH_Intel
Employee
289 Views

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.

SGiff
New Contributor II
289 Views

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

idata
Community Manager
289 Views

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

CChar5
Novice
289 Views

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

Reply