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

Can't upload any arduino sketch into the Edison

Hi everyone,

I can't upload any Arduino sketch into the Edison boards. The error message "An error occurred while uploading the sketch" is always displayed.

I have tried downgraded the Arduino IDE to 1.6.8 (Edison package: 1.6.2+1.0) as well as 1.6.5 (1.6.2+1.0), the problem persists. The two usb cables are OK

and external power adaptor is used. Besides, putty via COM14 is normal too.

Please help!!!

@@

Anthony

My config:

Desktop PC: Windows 10 Home (64 bit), i7-6700, 16G DDR4 ram

Arduino IDE version : 1.81

Intel i686 boards, Edison : 1.6.7+1.0

Intel Edison Virtual Com Port : COM13

USB Serial Port : COM14

Edison firmware : 201606061707

The Arduino IDE Message are as follows:

Arduino: 1.8.1 (Windows 10), Board: "Intel® Edison"

Sketch uses 76331 bytes (0%) of program storage space. Maximum is 10000000 bytes.

# !/bin/sh

# clupload script to invoke lsz

# Copyright (C) 2014 Intel Corporation

#

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

starting download script

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

Args to shell: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\Dell\AppData\Local\Temp\arduino_build_396693/Blink2017.ino.elf COM13

# License as published by the Free Software Foundation; either

COM PORT 13

Converted COM Port COM13 to tty port /dev/ttyS12

# version 2.1 of the License, or (at your option) any later version.

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

#

Deleting existing sketch on target

# 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

# 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

0 [main] bash 1764 child_info_fork::abort: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cygiconv...: Loaded to different address: parent(0xE80000) != child(0xEE0000)

C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

0 [main] bash 6012 child_info_fork::abort: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cygiconv...: Loaded to different address: parent(0xE80000) != child(0xEB0000)

C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

0 [main] bash 11080 child_info_fork::abort: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cygiconv...: Loaded to different address: parent(0xE80000) != child(0xEE0000)

C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

0 [main] bash 7708 child_info_fork::abort: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cygiconv...: Loaded to different address: parent(0xE80000) != child(0x710000)

C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: retry: Resource temporarily unavailable

0 [main] bash 7500 child_info_fork::abort: C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0\x86\bin\cygiconv...: Loaded to different address: parent(0xE80000) != child(0x800000)

C:\Users\Dell\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadEdison_win.sh: fork: Resource temporarily unavailable

An error occurred while uploading the sketch

0 Kudos
6 Replies
idata
Community Manager
52 Views

Dear Anthony,

Please select intel edison board from Tools > Board > (Intel Edison - Board)

YTam
Beginner
52 Views

Hi Gray-Worm,

Thank you very much for your assistance !!!

Actually I always select the Intel Edison board from the "Tools > Board > (Intel Edison - Board)".

I have also tried different Edison packages: 1.6.7+1.0 as well as 1.6.2+1.0 from Tools>Board>Board Manager...> intel i686 . the same error still persists.

Anthony

idata
Community Manager
52 Views

Hi Anthony,

 

 

Thanks for reaching out.

 

 

That's a weird issue, we have some questions to know more about your issue:

 

 

1. Is your board recognized when you plug it?

 

2. Can you send us a screenshot of the device manager?

 

3. Did you try to flash your Edison? If you didn't please follow this guide: https://communities.intel.com/docs/DOC-25154 https://communities.intel.com/docs/DOC-25154

 

 

We will be waiting for your reply to help you more.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
YTam
Beginner
52 Views

Hi Leonardo,

Thanks again for your kind assistance!

1. Is your board recognized when you plug it?

Yes, whenever the board is plugged into the PC, it can be correctly recognized.

a. A new drive with volume label: Edison can be observed.

b. Beside, 3 new port can be found in the Device Manager->Ports(COM & LPT)

intel Edison USB Composite Device(COM12)

intel Edison Virtual Comm Port(COM13) <--------- Port for Arduino IDE

USB Serial Port(COM14) <-------- Port for putty

2. Screenshot of the device manager :

3. I will flash my Edison this afternoon.

Best Regards,

Anthony

idata
Community Manager
52 Views

Hi Anthony,

 

 

Thanks for the information provided. Let us know when you already flashed it.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
YTam
Beginner
52 Views

Hi Leonardo,

I have flashed my Edison board according to your link, now everything is worked as expected and no more upload sketch problem found!!!

The only strange is the time for the Arduino IDE to lanuch is little bit longer, near 1.5 minuate.

Besides, what is the difference between the image installed by "flashing" and by the "Setup tool".

It's the image from flashing is the "Complete image" while the image from the "Setup tool" is only the tailor-made one ?

Again and again, thank you very much !!!

Best regards,

Anthony

Reply