SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By tacbanon
#182184
Hi everyone! I'm still new to the embedded world. I bought an intel edison and sparkfun's intel edison blocks.
So far the following list is what I have accomplished.
1. Install drivers for windows
2. Install putty
3. Flash updated image to intel edison
4. Connect to my wifi router.

Block arrangement on top of each other.
1. Intel Edison (Top)
2. Base block
2. Uart block
3. Arduino block

But I got stock on making an LED blink, I did follow from this https://software.intel.com/en-us/instal ... ison-board, I have the arduino IDE for intel edison on my computer installed and making sure the port I'm using is the Intel edison virtual com port. When uploading the blink program I the following error..
Code: Select all
#!/bin/sh
starting download script

# clupload script to invoke lsz 
# Copyright (C) 2014 Intel Corporation
Args to shell: C:\Intel\arduino-1.6.0+Intel\hardware\tools\x86\bin C:\Users\Microbox\AppData\Local\Temp\build6937678149433339674.tmp/sketch_may24a.cpp.elf COM235
# 
COM PORT 235
# This library is free software; you can redistribute it and/or
Converted COM Port COM235 to tty port /dev/ttyS234
# modify it under the terms of the GNU Lesser General Public
Sending Command String to move to download if not already in download mode
# 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
Deleting existing sketch on target
# 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 downloadEdison" > $tty_port_id
C:\Intel\arduino-1.6.0+Intel/hardware/intel/i686/tools/izmir/clupload_win.sh: line 42: /dev/ttyS234: Read-only file system

#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
C:\Intel\arduino-1.6.0+Intel/hardware/intel/i686/tools/izmir/clupload_win.sh: line 46: /dev/ttyS234: Read-only file system
# 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
C:\Intel\arduino-1.6.0+Intel/hardware/intel/i686/tools/izmir/clupload_win.sh: line 51: /dev/ttyS234: Read-only file system

#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 "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
C:\Intel\arduino-1.6.0+Intel/hardware/intel/i686/tools/izmir/clupload_win.sh: line 56: /dev/ttyS234: Read-only file system
Hope anyone can help me out.

Thank you very much in advance,
tacbanon
By tacbanon
#182276
Hardware setup
Edison module
Base block
Uart Block
Arduino block

I have not found any fix for the trouble I'm having regards to uploading codes to arduino with edison. I tried to follow the tutorial in https://learn.sparkfun.com/tutorials/ed ... in-arduino but still no luck. I did the following steps
1. Flash new image (version 146)
2. Configured wifi
3. Downloaded Arduino IDE for Edison

following the tutorial still gives me error (Read-only file system)

Please help what I'm missing.

Regards,
tacbanon
By tacbanon
#182293
I finally got the program to transfer to the Edison soc. But I'm confused there is no blinking on the arduino block. I used the Arduino IDE for Edison. When selecting the blinking example sketch does it automatically assign to the pin(pin 13 of arduino) of the Edison? Can anyone share the idea how the process to make it work? Any input is much appreciated.
User avatar
By Ross Robotics
#182295
Just to let you know that we (support volunteers) are not ignoring you on purpose. We just don't have experience with the Edison yet.
By tacbanon
#182314
I finally got the sketch uploaded and blink program running for the first time. Just follow the guide from https://software.intel.com/en-us/iot/li ... ng-started. Troubles I have with it at start.
1. Not able to upload sketch to edison using Arduino for intel edison IDE.
Solution that worked for me : Flash the latest image first and use other usb port available on your PC.
I now understood that to be able to run the blinking program of the arduino sketch, needed to change pin 13 to 5. 5 is the equivalent pin of the edison to the pin 13 of the arduino. So reading a bit first of the GPIO of the edison helps alot. :) And just use the edison breakout block and connect an LED to GP13 and Gnd.
Code: Select all
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the Uno and
  Leonardo, it is attached to digital pin 13. If you're unsure what
  pin the on-board LED is connected to on your Arduino model, check
  the documentation at http://arduino.cc

  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
 */

int xctr =0 ;

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(5, OUTPUT);
  digitalWrite(5,LOW);
  Serial.begin(9600);
  Serial.println("Ready...");
  delay(2000);
}

// the loop function runs over and over again forever
void loop() {
  xctr++;
  
  digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
  Serial.print("Led High ");Serial.println(xctr);
  delay(1500);              // wait for a second
  digitalWrite(5, LOW);    // turn the LED off by making the voltage LOW
  Serial.print("LOW High ");
  delay(1500);              // wait for a second
}
https://drive.google.com/file/d/0B71ISD ... sp=sharing
I post it here just in case it will help beginners like me.