Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nhoan5
Beginner
1,256 Views

LED Blinked but sketch always show error

i'm trying to re-install Software, update, create a new code. my galileo (gen 1) was working but the sketch log always show error.

i have used example blink.

Can someone help me to fix it.?

Build options changed, rebuilding all

Sketch uses 57,991 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

#

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

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

Args to shell: /Applications/Galileo.app/Contents/Resources/Java/hardware/tools/x86/bin /var/folders/1r/dwjbvdlj30v8d0ny0vfzwpsh0000gn/T/build8070244135145685959.tmp/Blink.cpp.elf /dev/cu.usbmodem1411

# License as published by the Free Software Foundation; either

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

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

Using tty Port /dev/cu.usbmodem1411

#

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

# 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: 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 downloadGalileo" > $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

Transfer complete

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

Sending: Blink.cpp.elf

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

Bytes Sent: 1024/ 57840 BPS:608093 ETA 00:00

Bytes Sent: 9216/ 57840 BPS:3010725 ETA 00:00

Bytes Sent: 10240/ 57840 BPS:3189963 ETA 00:00

Bytes Sent: 11264/ 57840 BPS:3358305 ETA 00:00

Bytes Sent: 12288/ 57840 BPS:3511829 ETA 00:00

Bytes Sent: 13312/ 57840 BPS:3635300 ETA 00:00

Bytes Sent: 14336/ 57840 BPS:3742192 ETA 00:00

Bytes Sent: 15360/ 57840 BPS:3880760 ETA 00:00

Bytes Sent: 16384/ 57840 BPS:3992300 ETA 00:00

Bytes Sent: 17408/ 57840 BPS:4075831 ETA 00:00

Bytes Sent: 18432/ 57840 BPS:4153293 ETA 00:00

Bytes Sent: 19456/ 57840 BPS:4292030 ETA 00:00

Bytes Sent: 20480/ 57840 BPS:4451204 ETA 00:00

Bytes Sent: 21504/ 57840 BPS:4578391 ETA 00:00

Bytes Sent: 22528/ 57840 BPS:4739868 ETA 00:00

Bytes Sent: 23552/ 57840 BPS:4893458 ETA 00:00

Bytes Sent: 24576/ 57840 BPS:5067309 ETA 00:00

Bytes Sent: 25600/ 57840 BPS:5207535 ETA 00:00

Bytes Sent: 26624/ 57840 BPS:5205050 ETA 00:00

Bytes Sent: 27648/ 57840 BPS:5206722 ETA 00:00

Bytes Sent: 28672/ 57840 BPS:5188501 ETA 00:00

Bytes Sent: 29696/ 57840 BPS:5149415 ETA 00:00

Bytes Sent: 30720/ 57840 BPS:5128523 ETA 00:00

Bytes Sent: 31744/ 57840 BPS:5119937 ETA 00:00

Bytes Sent: 32768/ 57840 BPS:5124877 ETA 00:00

Bytes Sent: 33792/ 57840 BPS:5128597 ETA 00:00

Bytes Sent: 34816/ 57840 BPS:5147299 ETA 00:00

Bytes Sent: 35840/ 57840 BPS:5118627 ETA 00:00

Bytes Sent: 36864/ 57840 BPS:5112211 ETA 00:00

Bytes Sent: 37888/ 57840 BPS:5128401 ETA 00:00

Bytes Sent: 38912/ 57840 BPS:5114017 ETA 00:00

Bytes Sent: 39936/ 57840 BPS:5118681 ETA 00:00

Bytes Sent: 40960/ 57840 BPS:5127094 ETA 00:00

Bytes Sent: 41984/ 57840 BPS:5148335 ETA 00:00

Bytes Sent: 43008/ 57840 BPS:5173027 ETA 00:00

Bytes Sent: 44032/ 57840 BPS:5190657 ETA 00:00

Bytes Sent: 45056/ 57840 BPS:5222133 ETA 00:00

Bytes Sent: 46080/ 57840 BPS:5251855 ETA 00:00

Bytes Sent: 47104/ 57840 BPS:5283145 ETA 00:00

Bytes Sent: 48128/ 57840 BPS:5308005 ETA 00:00

Bytes Sent: 49152/ 57840 BPS:5335639 ETA 00:00

Bytes Sent: 50176/ 57840 BPS:5360094 ETA 00:00

Bytes Sent: 51200/ 57840 BPS:5387295 ETA 00:00

Bytes Sent: 52224/ 57840 BPS:5410748 ETA 00:00

Bytes Sent: 53248/ 57840 BPS:5433493 ETA 00:00

Bytes Sent: 54272/ 57840 BPS:5452816 ETA 00:00

Bytes Sent: 55296/ 57840 BPS:5476980 ETA 00:00

Bytes Sent: 56320/ 57840 BPS:5503802 ETA 00:00

Bytes Sent: 57344/ 57840 BPS:5538957 ETA 00:00

Bytes Sent: 57840 BPS:1083798

Transfer complete

#

# 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

Transfer complete

#

#

3 Replies
nhoan5
Beginner
71 Views

Can someone help me .!?

asss
Valued Contributor II
71 Views

Hi,

may you show where is an error?

BR,

xbolshe

Diego_V_Intel
Employee
71 Views

Hello Cnguyen,

From what I see in your screenshot, there isn't any error message. If the onboard LED is blinking then the sketch was uploaded successfully. The Arduino IDE always displays an output log but it doesn't mean there is an error.

Regards,

Diego.

Reply