Getting Started with MPLAB Xpress Board and Online IDE

Microchip launched MPLAB Xpress online IDE and board earlier this year, and as part of the launch they offered 2,000 free boards. I joined the program and received my board. The keyword for the board is “Xpress”, as you should be able to get started in mere minutes thanks to the operating system agnostic online IDE that works with Internet Explorer, Firefox, Chrome, and Safari. That also means you don’t need to install any other tool. All you need is a web browser.

MPLAB Xpress Board

Let’s start by quickly checking out the package, board, and offline documentation.

MPLAB_Xpress_packageOnce you open the package, you’ll get the board, a folded sheet of paper for the schematics, and some information on the package itself with the pinout diagram, and a quick start guide explaining that the board acts as a mass storage device, and all you need is a web browser for programming it.

Click to Enlarge
Click to Enlarge

The part has two parts: “Application” and “Programmer”. The latter features the micro USB port, and the eleectronics to handle the USB connection with a PC. There’s also a 2-pin header to power the board with a battery. The application part comes with a mikroBUS socket to be used with MikroElektrona’s Click boards, two rows of through holes on the sides with GPIOs, SPI, I2C, UART, PWM, and analog input pins, a potentiometer, a user button, and Microchip PIC16F18855 MCU.

Click to Enlarge
Click to Enlarge

There’s not much to see on bottom of the board.

Click to Enlarge
Click to Enlarge

Getting Started with MPLAB Xpress

I had to find a commonly used micro USB to USB cable to connect the board to my computer. I’m using Ubuntu 14.04 and Firefox, but most operating systems and web browser combination should work.

The board four RED LEDs are blinking in sequence, and it is indeed detected as a mass storage device with a single file README.HTM. Clicking on the file will open your default web browser and redirect to the MPLAB Xpress page @ https://www.microchip.com/mplab/mplab-xpress. I scrolled down to the bottom of the age, and clicked on Examples in the Community section.

MPLAB_Xpress_Code_Samples
Click to Enlarge

You’ll get a list of code example for Xpress and Curiosity boards made by either Microchip themselves or the developer community. I filtered the results for Xpress board and Microchip, and clicked on Open for LED brightness control using potentiometer example, which started the online IDE with the sample program:

MPLAB_Express_LED_Potentionmeter_Example
The code is written in C, and is pretty simple, as all complex initialization tasks are handled by the “SYSTEM_Initialize” function:


I then clicked on the Build icon right above “main.c”, and shortly after I was asked to download “LED_brightness_control_using_potentiometer.hex”.

MPLAB_Express_Build_Sample
Click to Enlarge

Finally I copied the binary to the board, just like I would coy a file to a USB flash drive.

MPLAB_Express_Hex_FileThe program is then automatically started with the four red LEDs on, and I was able to dim and turn on and off the LEDs with the potentiometer.

MPLAB_Xpress_Potentiometer_LED_demoIt must have taken me about 5 minutes from the time I open the package to the time I have the demo running. Quite impressive in simplicity.

It’s also possible to play with MPLAB Xpress IDE without board using the “Test Drive” option. The board is not for sale yet, but if you are interested, you can apply for an introductory discount to buy the board when it becomes available on microCHIP direct store.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX Rockchip RK3588 mini-ITX motherboard

4 Replies to “Getting Started with MPLAB Xpress Board and Online IDE”

  1. Cool stuff but i don’t understand how they program the hex to PIC?
    They propose to download a small program to handle pickit3/ICD3 from downloaded hex file?

    It’s can be a wide opensource library program if they notice that online mplabx is GPL (they have your code all the time) to share to each other!
    PIC16F and PIC32MX are a good choice for my project, happy to see Microchip try to see future…

  2. @boobypi
    I’m not sure how they do it internally, but you just copy the hex file to the flash (using your OS file manager), and then the program runs from there, or they flash it in the background somewhere else, and run it.

  3. @boobypi
    There’s no additional hardware required to program the MPLAB Xpress board. Instead, this board uses a clever approach: a PIC18LF25K50 is used to emulate a USB drive, and it uses LVP to program the PIC16F18855. The .hex file remains on the PC, it just appears as being on the USB drive.
    Besides this, the PIC18LF25K50 also performs USB-UART function.
    If you wish to dig further, the source files of the Xpress loader can be found on https://github.com/MicrochipTech/XPRESS-Loader.

Leave a Reply

Your email address will not be published. Required fields are marked *

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...
Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...