版主: wanchong , wangyu , eepwwp , firedom

分享到:
共1条 1/1 1   

arduino 1.5.3 版下载固件到edison 异常问题求解

    [您是本帖的第1274位阅读者]
lilianhu
我是MM
普通会员

最后登陆时间:2015-10-30 14:46:45

直达楼层
1# 发表于 2015-04-17 23:50:18
Linux系统:使用arduino工具 选择led的用例下载,板子选择Edison (tool->board)串口选择ttyUSB0 (使用minicom 验证可以和板子通信),下载报错如下:
Binary sketch size: 76,087 bytes (of a 10,000,000 byte maximum) - 0% used
#!/bin/sh
starting download script

echo "starting download script"
Args to shell: /home/zengmin/mywork/arduino-1.5.3-Intel.1.0.4/hardware/tools /tmp/build8099810468352076337.tmp/Blink.cpp.elf /dev/ttyUSB0
echo "Args to shell:" $*
Serial Port PORT
#
Using tty Port /dev/ttyUSB0
# ARG 1: Path to lsz executable.
Sending Command String to move to download if not already in download mode
# 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 
echo "Using 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
#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
Retry 0: Got TIMEOUT

请大神帮忙,感谢!
共1条 1/1 1   
快速回复主题
  • 匿名不能发帖!请先 [ 登陆 注册 ]