(Linux)
Line 64: Line 64:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
=MAC=
 
=MAC=
 +
[If you're a beta tester with access to MAC please get in touch, need your help to test it on MAC]

Revision as of 18:08, 19 May 2016

This guide is for beta testers only. The guide will be much simpler for the end user. If you are a beta tester please send an email to support@exploreembedded.com with your github userid to gain access to the test code.

The Explore M3 Parts

The figure shows location of various parts on the board, which will be using during the setup. Look at the switches, the RGB led and the led on pin 13 in particular.

0 Explore M3 HW Marking.png

Using Board Manager

This will be added after first public release. This will eliminate all manual installation steps below.

Windows

  1. Download and install the Arduino IDE (1.6.5 preferred).
  2. Download and extract the contents of repository inside Arduino>Hardware directory of your Arduino Installation. Usually found under Documents>Arduino>Hardware. Verify that the directory structure looks like C:\Users\myPC\Documents\Arduino\hardware\Explore-M3. Note: This is for beta testers only, to get access to repo, please send an email with your github user-id
  3. Installing the Device Firmware Upgrade(DFU) Driver. This driver is used for programming the Explore M3.
    1. To upload a new program to Explore M3, put the board in programming mode by holding down the boot-loader switch, press and release the reset switch and then release the boot-loader switch. The RGB LED turns green indicating boot-loader mode.
    2. The board shows up as unknown device in device manager.
      1 driver M3.png
    3. Go to ..\Documents\Arduino\hardware\Explore-M3\tools\win and run the Zidag utility.2 driver M3.png
    4. Click on Options and select List All Devices3 driver M3.png
    5. Select the device as Explore M3 and assign WinUSB driver as shown 3a driver M3.png
    6. Click on Install driver4 driver M3.png
    7. Verify in the device Manager that the driver is successfully installed. 5 driver M3.png
  4. Install Virtual COM driver ; This driver makes the same USB interface appear as virtual com port. The virtual COM code on the Arduino resides with every sketch that uses the Serial Class.
    1. Open the _01_TestCode example as shown. 6 driver M3.png
    2. Put the board in programming mode and upload the sketch.7 driver M3.png
    3. The COM port will appear as shown. 8 driver M3.png
    4. Install the CDC driver using the Zidag utility this time. 9 driver M3.png 10 driver M3.png
    5. Verify successful installation in the device manager. 11 driver M3.png
  5. Select the appropriate COM port in the Arduino IDE and open the terminal to observe the output.12 driver M3.png


Also notice that the RGB LEDs and the LED on pin 13 blink in a sequence.

Linux

This setup has been tested on Ubuntu 64 bit. If you should have any errors other linux flavours, do post in the comments.

One good thing I noticed, drivers are not required but only the device needs to be enabled. So lets get started.

  1. Download and install the Arduino IDE (1.6.5 preferred).
  2. Download and extract the contents of repository inside Arduino>Hardware directory of your Arduino Installation. Note: This is for beta testers only, to get access to repo, please send an email with your github user-id
  3. UDEV Rules: To enable Explore M3 as USB DFU and COM port add the UDEV rules as below.
    1. Create a file /etc/udev/rules.d/90-explore-m3.rules
    2. Add the following lines to it.
      SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="ee03", MODE="0666" SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="ee03", SYMLINK+="Explore M3%n"
    3. Reload UDEV rules by
      udevadm control --reload-rules
       sudo service  udev restart # ubuntu
  4. Connect the board to USB port now, put it in bootloader mode and run the dfu-util -l command to see if it detects the device as shown DFU-After-udev-rules.png
  5. Now for the glory, select the board as Explore M3, and upload the the test code Upload.png
  6. Test code for reference
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(13,OUTPUT);
}
 
void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(13,0);
rgbWriteAll(1,1,0);
delay(200);
rgbWriteAll(1,0,1);
delay(200);
rgbWriteAll(0,1,1);
delay(200);
digitalWrite(13,1);
delay(200);
Serial.println("Explore M3");
}

MAC

[If you're a beta tester with access to MAC please get in touch, need your help to test it on MAC]