Can't upload any arduino sketch into the Edison
fmanthon Feb 12, 2017 10:15 PMHi 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-2.dll: 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-2.dll: 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-2.dll: 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-2.dll: 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-2.dll: 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