头像-33600

GeekBE

  • 北京市北京市
  • 单片机
  • 计算机网络

个人成就

获得 0 次赞

帮助过0人

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

程序输入应该是没问题的简单显示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