Here is the code i used
/*
Blink without Delay
Turns on and off a light emitting diode (LED) connected to a digital pin,
without using the delay() function. This means that other code can run at the
same time without being interrupted by the LED code.
The circuit:
- Use the onboard LED.
- Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA
and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN
is set to the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your
Arduino model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
created 2005
by David A. Mellis
modified 8 Feb 2010
by Paul Stoffregen
modified 11 Nov 2013
by Scott Fitzgerald
modified 9 Jan 2017
by Arturo Guadalupi
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/BlinkWithoutDelay
*/
// constants won't change. Used here to set a pin number:
const int ledPin = 2;// the number of the LED pin
// Variables will change:
int ledState = LOW; // ledState used to set the LED
// Generally, you should use "unsigned long" for variables that hold time
// The value will quickly become too large for an int to store
unsigned long previousMillis = 0; // will store last time LED was updated
// constants won't change:
const long interval = 1000; // interval at which to blink (milliseconds)
void setup() {
// set the digital pin as output:
pinMode(ledPin, OUTPUT);
}
void loop() {
// here is where you'd put code that needs to be running all the time.
// check to see if it's time to blink the LED; that is, if the difference
// between the current time and last time you blinked the LED is bigger than
// the interval at which you want to blink the LED.
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= interval) {
// save the last time you blinked the LED
previousMillis = currentMillis;
// if the LED is off turn it on and vice-versa:
if (ledState == LOW) {
ledState = HIGH;
} else {
ledState = LOW;
}
// set the LED with the ledState of the variable:
digitalWrite(ledPin, ledState);
}
}
Here is the log
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\banic\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\banic\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\banic\Documents\Arduino\libraries -fqbn=Intel:i586:izmir_fd -vid-pid=8086_BABE -ide-version=10816 -build-path C:\Users\banic\AppData\Local\Temp\arduino_build_99406 -warnings=none -build-cache C:\Users\banic\AppData\Local\Temp\arduino_cache_821446 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.sketchUploader.path=C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0 -prefs=runtime.tools.sketchUploader-1.6.2+1.0.path=C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0 -prefs=runtime.tools.i586-poky-linux-uclibc.path=C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\i586-poky-linux-uclibc\1.6.2+1.0 -prefs=runtime.tools.i586-poky-linux-uclibc-1.6.2+1.0.path=C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\i586-poky-linux-uclibc\1.6.2+1.0 -verbose C:\Users\banic\AppData\Local\Temp\arduino_modified_sketch_964839\BlinkWithoutDelay.ino
Using board 'izmir_fd' from platform in folder: C:\Users\banic\AppData\Local\Arduino15\packages\Intel\hardware\i586\1.6.7+1.0
Using core 'arduino' from platform in folder: C:\Users\banic\AppData\Local\Arduino15\packages\Intel\hardware\i586\1.6.7+1.0
Detecting libraries used...
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++" -m32 -march=i586 "--sysroot=C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/i586-poky-linux-uclibc" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -D__ARDUINO_X86__ -Xassembler -mquark-strip-lock=yes -w -x c++ -E -CC -march=i586 -m32 -DARDUINO=10816 "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\cores\\arduino" "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\variants\\galileo_fab_d" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\sketch\\BlinkWithoutDelay.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++" -m32 -march=i586 "--sysroot=C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/i586-poky-linux-uclibc" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -D__ARDUINO_X86__ -Xassembler -mquark-strip-lock=yes -w -x c++ -E -CC -march=i586 -m32 -DARDUINO=10816 "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\cores\\arduino" "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\variants\\galileo_fab_d" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\sketch\\BlinkWithoutDelay.ino.cpp" -o "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++" -m32 -march=i586 "--sysroot=C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/i586-poky-linux-uclibc" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -D__ARDUINO_X86__ -Xassembler -mquark-strip-lock=yes -march=i586 -m32 -DARDUINO=10816 "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\cores\\arduino" "-IC:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\hardware\\i586\\1.6.7+1.0\\variants\\galileo_fab_d" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\sketch\\BlinkWithoutDelay.ino.cpp" -o "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\sketch\\BlinkWithoutDelay.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\banic\AppData\Local\Temp\arduino_build_99406\core\variant.cpp.o
Using precompiled core: C:\Users\banic\AppData\Local\Temp\arduino_cache_821446\core\core_Intel_i586_izmir_fd_e80894d4c81a744022c821524eed4447.a
Linking everything together...
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++" -m32 -march=i586 "--sysroot=C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/i586-poky-linux-uclibc" -Os -Wl,--gc-sections -march=i586 -o "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406/BlinkWithoutDelay.ino.elf" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\sketch\\BlinkWithoutDelay.ino.cpp.o" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406\\core\\variant.cpp.o" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406/..\\arduino_cache_821446\\core\\core_Intel_i586_izmir_fd_e80894d4c81a744022c821524eed4447.a" "-LC:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406" -lm -lpthread
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-strip" "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406/BlinkWithoutDelay.ino.elf"
"C:\\Users\\banic\\AppData\\Local\\Arduino15\\packages\\Intel\\tools\\i586-poky-linux-uclibc\\1.6.2+1.0/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-size" -A "C:\\Users\\banic\\AppData\\Local\\Temp\\arduino_build_99406/BlinkWithoutDelay.ino.elf"
Sketch uses 58150 bytes (0%) of program storage space. Maximum is 10000000 bytes.
C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin/bash.exe --verbose --noprofile C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/clupload/cluploadGalileo_win.sh C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\banic\AppData\Local\Temp\arduino_build_99406/BlinkWithoutDelay.ino.elf COM8
#!/bin/sh
starting download script
Args to shell: C:\Users\banic\AppData\Local\Arduino15\packages\Intel\tools\sketchUploader\1.6.2+1.0/x86/bin C:\Users\banic\AppData\Local\Temp\arduino_build_99406/BlinkWithoutDelay.ino.elf COM8
# clupload script to invoke lsz
COM PORT 8
# Copyright (C) 2014 Intel Corporation
Converted COM Port COM8 to tty port /dev/ttyS7
#
Sending Command String to move to download if not already in download mode
# This library is free software; you can redistribute it and/or
Deleting existing sketch on target
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
echo "starting download script"
echo "Args to shell:" $*
# ARG 1: Path to lsz executable.
# 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
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 downloadGalileo" > $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
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
Sending: BlinkWithoutDelay.ino.elf
Bytes Sent: 57840 BPS:420272
Transfer complete
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 "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
Transfer complete
type or paste code here
But the led won't blink