Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
908 Views

Intel edison Problems uploading sketch

This is the error message that i got in my IDE.

Build options changed, rebuilding all

Sketch uses 81,113 bytes (0%) of program storage space. Maximum is 10,000,000 bytes.

# !/bin/sh

starting download script

# clupload script to invoke lsz

# Copyright (C) 2014 Intel Corporation

Args to shell: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\JONATH~1\AppData\Local\Temp\build5302849050521660872.tmp/SimplePost.cpp.elf COM4

#

COM PORT 4

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

Converted COM Port COM4 to tty port /dev/ttyS3

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

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

# License as published by the Free Software Foundation; either

# 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 downloadEdison" > $tty_port_id

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

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

2 [main] bash 3352 child_info_fork::abort: C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x...: Loaded to different address: parent(0x4D0000) != child(0x5D0000)

C:\Users\jonathanrjpereira\AppData\Roaming\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.s...

1 Reply
Highlighted
Employee
2 Views

Hello jonathanrjpereira,

Are you selecting the correct COM port and the correct board in the Arduino IDE? Is this the first time you try to upload a sketch?

I prefer to use the Arduino IDE 1.6.0 which already includes the Edison and Galileo packages. I suggest you to try to upload a sketch with this IDE version and check if you get the same error message. The Arduino IDE 1.6.0 can be downloaded from here: http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Windows.7z Arduino IDE 1.6.0.

Regards,

Diego.