13 Replies Latest reply on Feb 12, 2015 4:22 PM by Chris.Charlton

    Edison Breakout Board + Arduino-Intel IDE (Is it possible?)

    andyFun

      Hello all,

      This is probably a very noobish question, but... Can I use the Intel-Arduino IDE to upload sketches to the breakout board version of the Edison? I read somewhere that people were using Eclipse, but I'm already familiar with the Arduino syntax of Java, and was wondering if Eclipse was the only IDE I can use, with Java? note: I have Eclipse for Arduino installed, but I don't use it much. Only when a sketch is particularly troublesome, and I need the more advanced debugger.

       

      I followed the "Breakout board blink" in the getting started forum, and was able to run the script using NodeJS interpreter, just fine. Using ArduinoIDE would help me a great deal in porting over my existing projects to the Edison. I also wanted to avoid the Arduino/Edison board because it is too big and bulky for my application.

       

      I tried to upload a simple Serial.print sketch through Intel-Arduino IDE, and it just hangs (doesn't say "Incomplete", it just hangs)

       

      Sorry if this is just cluttering the forum, I'm super new to all of this.

      Thanks!

       

      Code:

        int x = 0;


      void setup() {

        Serial.begin(115200);

      }


      void loop() {

        while(x < 10){

          Serial.print("Hello.");

          x++;

        }

      }

       

       

      Output:

      Binary sketch size: 72,974 bytes (of a 10,000,000 byte maximum) - 0% used

      cygwin warning:

        MS-DOS style path detected: C:\CodeIDEs\arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh

      starting download script

        Preferred POSIX equivalent is: /cygdrive/c/CodeIDEs/arduino-1.5.3-Intel.1.0.4/hardware/arduino/edison/tools/izmir/clupload_win.sh

      Args to shell: C:\CodeIDEs\arduino-1.5.3-Intel.1.0.4/hardware/tools/x86/bin C:\Users\andy\AppData\Local\Temp\build5316758566046783461.tmp/sketch_nov16a.cpp.elf COM7

        CYGWIN environment variable option "nodosfilewarning" turns off this warning.

      COM PORT 7

        Consult the user's guide for more details about POSIX paths:

          http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

      #!/bin/sh

       

       

      Converted COM Port COM7 to tty port /dev/ttyS6

      echo "starting download script"

      Sending Command String to move to download if not already in download mode

      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 download" > $tty_port_id

       

       

      Deleting existing sketch on target

      #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

       

      It just hangs there.