9 Replies Latest reply on Feb 12, 2015 3:10 PM by Jacen

    Transfer Incomplete arduino+edison

    Terrence_

      This seems to happen to me every other day or so.

      I am working along and then all of the sudden on my next build it chokes with a transfer incomplete.

      I usually have to take the ino file and create a new project, reboot the Edison, do a dance, etc. and then the file will build and deploy to the board.

      Here is my sketch and the build readout.

      *

      *

      *

      *

      Well I went over to get the build output and I am no longer getting the "transfer incomplete" message, now I am getting a compile error.

       

      Any help on this seemingly random issue would be great.

       

      Sketch:

      #include "arduino.h"

       

      #include <Time.h>

       

      int ledPin = 13;  // choose the pin for the LED

       

      int inputPin = 8;  // choose the input pin (for PIR sensor)

       

      int pirState = LOW// we start, assuming no motion detected

       

      int val = 0;  // variable for reading the pin status

       

      void setup() {

       

      pinMode(ledPin, OUTPUT);  // declare LED as output

       

      pinMode(inputPin, INPUT);  // declare sensor as input

       

      Serial.println("setup");

       

      attachInterrupt(8, getMotion, RISING);

        

      void getMotion()

       

      Serial.print("8 is HIGH");

       

      void loop()

      {

      }

       

      ********************************************************************************************************************************

       

      Board Properties

       

      name=Intel® Edison

       

      upload.tool=izmirdl

       

      upload.protocol=sam-ba

       

      upload.maximum_size=10000000

       

      upload.use_1200bps_touch=false

       

      upload.wait_for_upload_port=false

       

      upload.native_usb=false

       

      build.mcu=i686

       

      build.f_cpu=-m32

       

      build.core=arduino

       

      build.variant=edison_fab_c

       

      build.toolchain_path=x86_64-pokysdk-linux-eglibc/usr/bin/i586-poky-linux

       

      build.sysroot_path=i586-poky-linux-eglibc

       

      build.toolchain_prefix=i586-poky-linux-

       

      runtime.ide.path=E:\Ard104

       

      build.system.path=E:\Ard104\hardware\arduino\edison\system

       

      runtime.ide.version=153

       

      originalid=izmir_ec

       

      compiler.toolchain.path={runtime.ide.path}/hardware/tools/edison

       

      compiler.prefix=i586-poky-linux

       

      compiler.path={compiler.toolchain.path}/sysroots/i686-pokysdk-mingw32/usr/bin/i586-poky-linux/

       

      compiler.sysroot={compiler.toolchain.path}/sysroots/core2-32-poky-linux

       

      compiler.c.cmd={compiler.prefix}-gcc

       

      compiler.c.flags=-m32 -march=i586 --sysroot={compiler.sysroot} -c -g -Os -w -ffunction-sections -fdata-sections -MMD -D__ARDUINO_X86__

       

      compiler.c.elf.flags=-m32 -march=i586 --sysroot={compiler.sysroot} -Os -Wl,--gc-sections

       

      compiler.c.elf.cmd={compiler.prefix}-g++

       

      compiler.S.flags=-c -g -assembler-with-cpp

       

      compiler.cpp.cmd={compiler.prefix}-g++

       

      compiler.cpp.flags=-m32 -march=i586 --sysroot={compiler.sysroot} -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -D__ARDUINO_X86__

       

      compiler.ar.cmd={compiler.prefix}-ar

       

      compiler.ar.flags=rcs

       

      compiler.objcopy.cmd={compiler.prefix}-objcopy

       

      compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0

       

      compiler.elf2hex.flags=-O ihex -R .eeprom

       

      compiler.elf2hex.cmd={compiler.prefix}-objcopy

       

      compiler.ldflags=

       

      compiler.size.cmd={compiler.prefix}-size

       

      compiler.strip.cmd={compiler.prefix}-strip

       

      build.extra_flags=

       

      recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -march={build.mcu} {build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"

       

      recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -march={build.mcu} {build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"

       

      recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"

       

      recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -march={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm -lpthread

       

      recipe.objcopy.eep.pattern="{compiler.path}{compiler.strip.cmd}" "{build.path}/{build.project_name}.elf"

       

      recipe.objcopy.hex.pattern=

       

      recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"

       

      recipe.size.regex=Total\s+([0-9]+).*

       

      tools.izmirdl.cmd.path={runtime.ide.path}/hardware/arduino/edison/tools/izmir/clupload_win.sh

       

      tools.izmirdl.upload.params.verbose=-vvvvvv

       

      tools.izmirdl.upload.params.quiet=-q

       

      tools.izmirdl.upload.pattern={runtime.ide.path}/hardware/tools/x86/bin/bash --verbose --noprofile {cmd.path} {runtime.ide.path}/hardware/tools/x86/bin {build.path}/{build.project_name}.elf {serial.port}

       

      tools.izmirdl.program.params.verbose=-v -v -v -v

       

      tools.izmirdl.program.params.quiet=-q -q

       

      tools.izmirdl.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"

       

      tools.izmirdl.erase.params.verbose=-v -v -v -v

       

      tools.izmirdl.erase.params.quiet=-q -q

       

      tools.izmirdl.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m

       

      tools.izmirdl.bootloader.params.verbose=-v -v -v -v

       

      tools.izmirdl.bootloader.params.quiet=-q -q

       

      tools.izmirdl.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/x86/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m

       

      vm.platform.root.path=C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\arduino15x

       

      ide.hint=Arduino 1.5 Ide

       

      ide.location.key=Arduino15x

       

      ide.location.ide.winreg=Arduino 1.5.x Application

       

      ide.location.sketchbook.winreg=Arduino 1.5.x Sketchbook

       

      ide.location.sketchbook.preferences=sketchbook.path

       

      ide.location.preferences=%VM_APPDATA_ROAMING%\arduino15\preferences.txt

       

      ide.location.preferences_fallback=%VM_APPDATA_ROAMING%\arduino\preferences.txt

       

      ide.default.version=150

       

      ide.default.package=arduino

       

      ide.default.platform=avr

       

      ide.multiplatform=true

       

      ide.includes=arduino.h

       

      ide.platformswithoutpackage=false

       

      ide.includes.fallback=wprogram.h

       

      ide.extension=ino

       

      ide.extension.fallback=pde

       

      ide.versionGTEQ=150

       

      ide.exe=arduino.exe

       

      ide.hosts=atmel

       

      ide.url=http://arduino.cc/en/Main/Software

       

      vm.debug=true

       

      software=ARDUINO

       

      ssh.user.name=root

       

      ssh.user.default.password=arduino

       

      ssh.host.wwwfiles.path=/www/sd

       

      build.working_directory={runtime.ide.path}

       

      ide.appid=arduino15x

       

      location.sketchbook=C:\Users\Terrence\Documents\Arduino

       

      vm.core.include=arduino.h

       

      build.board=EDISON_IZMIR_EC

       

      vm.boardsource.path=E:\Ard104\hardware\arduino\edison

       

      runtime.platform.path=E:\Ard104\hardware\arduino\edison

       

      vm.platformname.name=edison

       

      build.arch=EDISON

       

      build.architecture=bin

       

      vmresolved.compiler.path=E:\Ard104\hardware\tools\edison\sysroots\i686-pokysdk-mingw32\usr\bin\i586-poky-linux\

       

      vmresolved.tools.path=E:\Ard104\hardware\tools\edison\sysroots\i686-pokysdk-mingw32\usr\bin

       

      vm.runtime.compiler.showwarnings=false

       

      serial.port.file=COM8

       

      serial.port=COM8

       

      includes= -I"E:\Ard104\hardware\arduino\edison\cores\arduino" -I"E:\Ard104\hardware\arduino\edison\variants\edison_fab_c" -I"E:\Ard104\libraries\Time" -I"E:\Ard104\libraries" -I"E:\Ard104\hardware\arduino\edison\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\Terrence\Documents\Arduino\libraries"

       

      build.path=C:\Users\Terrence\AppData\Local\VMicro\Arduino\Builds\PIR\izmir_ec

       

      build.project_name=PIR

       

      build.variant.path=E:\Ard104\hardware\arduino\edison\variants\edison_fab_c

       

      archive_file=core.a

       

      object_file=C:\Users\Terrence\AppData\Local\VMicro\Arduino\Builds\PIR\izmir_ec\variant.cpp.o

       

      source_file=E:\Ard104\hardware\arduino\edison\variants\edison_fab_c\variant.cpp

       

      Compiling 'PIR' for 'Intel® Edison'

       

      Build folder: file:///C:/Users/Terrence/AppData/Local/VMicro/Arduino/Builds/PIR/izmir_ec

       

      fcntl.h:In file included from

       

      fast_gpio_common.c:from

       

      stat.h:91:21: error: field 'st_atim' has incomplete type

       

      :struct timespec st_atim; \* Time of last access. *\

       

      :^

       

      stat.h:92:21: error: field 'st_mtim' has incomplete type

       

      :struct timespec st_mtim; \* Time of last modification. *\

       

      :^

       

      stat.h:93:21: error: field 'st_ctim' has incomplete type

       

      :struct timespec st_ctim; \* Time of last status change. *\

       

      :^

       

      fcntl.h:In file included from

       

      variant.cpp:from

       

      stat.h:91:21: error: field 'st_atim' has incomplete type

       

      :struct timespec st_atim; \* Time of last access. *\

       

      :^

       

      stat.h:92:21: error: field 'st_mtim' has incomplete type

       

      :struct timespec st_mtim; \* Time of last modification. *\

       

      :^

       

      stat.h:93:21: error: field 'st_ctim' has incomplete type

       

      :struct timespec st_ctim; \* Time of last status change. *\

       

      :^

       

      stat.h:152:21: error: field 'st_atim' has incomplete type

       

      :struct timespec st_atim; \* Time of last access. *\

       

      :^

       

      stat.h:153:21: error: field 'st_mtim' has incomplete type

       

      :struct timespec st_mtim; \* Time of last modification. *\

       

      :^

       

      stat.h:154:21: error: field 'st_ctim' has incomplete type

       

      :struct timespec st_ctim; \* Time of last status change. *\

       

      :^

       

      Error compiling core