• 已解决 35434 个问题
  • 已帮助 5838 位优秀工程师

用arduino ide给galileo写程序遇到的问题

GeekBE 2014-12-06 浏览量:3085

程序输入应该是没问题的简单显示Hello Galileo

IDE显示

Binary sketch size: 73,142 bytes (of a 10,000,000 byte maximum) - 0% used
cygwin warning:
  MS-DOS style path detected: C:arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh
  Preferred POSIX equivalent is: /cygdrive/c/arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user\'s guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
starting download script
#!/bin/sh
Args to shell: C:arduino-1.5.3-Intel.1.0.4/hardware/tools/x86/bin C:UsersGreekAppDataLocalTempbuild8027019928431900033.tmp/sketch_dec06a.cpp.elf COM4

echo "starting download script"
echo "Args to shell:" $*
COM PORT 4

Converted COM Port COM4 to tty port /dev/ttyS3
# 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: 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
Deleting existing sketch on target
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

#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
^XB00000000123273Retry 0: Got TIMEOUT
^XB00000000000000Retry 0: Got TIMEOUT

Transfer incomplete

# 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
^XB00000000000000Retry 0: Got TIMEOUT
^XB00000000000000Retry 0: Got TIMEOUT

Transfer incomplete

#mv the downloaded file to /sketch/sketch.elf 
Moving downloaded file to /sketch/sketch.elf on target
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
^XB00000000123273Retry 0: Got TIMEOUT
^XB00000000000000Retry 0: Got TIMEOUT

Transfer incomplete
用arduino ide给galileo写程序遇到的问题

0 0 收起

我来回答

上传资料:
选择文件 文件大小不超过15M(格式支持:doc、ppt、xls、pdf、zip、rar、txt)
最佳答案
  • 是的,ide默认开发板是Edison 
    • 发布于 2014-12-06
    • 举报
    • 评论 0
    • 0
    • 0

其他答案 数量:2
  • 好吧,我自己已经发现问题所在了

    -------就是ide默认开发板是Edison 大家使用之前一定注意要改。。。。。

    • 发布于2014-12-06
    • 举报
    • 评论 0
    • 0
    • 0

用arduino ide给galileo写程序遇到的问题