Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18548

Re: Arduino board

$
0
0

Yeah now it is working But when I upload a sketch the output is:

Binary sketch size: 76,063 bytes (of a 10,000,000 byte maximum) - 0% used

#!/bin/sh

starting download script

 

echo "starting download script"

Args to shell: D:\arduino-windows-1.0.4\arduino-1.5.3-Intel.1.0.4/hardware/tools/x86/bin C:\Users\Peppe\AppData\Local\Temp\build5705804304717377079.tmp/Led.cpp.elf COM3

echo "Args to shell:" $*

 

# ARG 1: Path to lsz executable.

# ARG 2: Elf File to download

COM PORT 3

# ARG 3: COM port to use.

Converted COM Port COM3 to tty port /dev/ttyS2

 

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

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

D:\arduino-windows-1.0.4\arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh: line 24: /dev/ttyS2: Permission denied

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

D:\arduino-windows-1.0.4\arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh: line 28: /dev/ttyS2: Permission denied

 

# 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

D:\arduino-windows-1.0.4\arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh: line 34: /dev/ttyS2: Permission denied

 

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

#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.exe --escape -c "cp sketch /sketch/sketch.elf" <> $tty_port_id 1>&0

$fixed_path/lsz.exe --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0

D:\arduino-windows-1.0.4\arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh: line 40: /dev/ttyS2: Permission denied"

 

 

"


Viewing all articles
Browse latest Browse all 18548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>