Getting Started With the LPCXpresso860-MAX Evaluation Board

Last Modified: 2023-04-11 07:41:00

Contents of this document

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build, Run
  • 4

    Configure Software

1. Plug It In

Let's take your LPCXpresso860-MAX for a test drive. You have the choice of watching the sequence in a short video or following the detailed actions listed below.

1.1 Get Familiar With the Board

Quick Start Guide

1.2 Attach the USB Cable

Plug the USB cable into the only one USB connector(J4), as is shown in the photo below

Attach the USB Cable

1.3 Run the Out of the Box Demo

Your LPCXpresso860-MAX comes loaded with a "LED blinky" demo, explained below and a demo that exercises the Cortex-M0+, described in the next section.

When the board is powered, the LED D2 should flash on and off.

LED Flash

2. Get Software

2.1 Jump Start Your Design With the MCUXpresso SDK

The MCUXpresso Software Development Kit (SDK) is complimentary and includes full source code under a permissive open source license for all hardware abstraction and peripheral driver software.

Click below to download the latest SDK release for the LPCXpresso860-MAX, make sure you select Host OS, Toolchain and desired components.

MCUXPRESSO-SDK-TN

Get MCUXpresso SDK

You can also use the online SDK Builder to create a custom SDK package for the LPCXpresso860-MAX.

2.2 Get Your Toolchain

MCUXpresso IDE is development platform ecosystem from NXP. It provides an end-to-end solution enabling engineers to develop embedded applications from initial evaluation to final production.

MCUXpresso IDE

Get MCUXpresso IDE

Want to use a different toolchain? Need help with choosing?

The MCUXpresso SDK includes support for other tools such as IAR, Keil and command-line GCC.

GS Tool Logos

2.3 MCUXpresso Config Tools

The MCUXpresso Config Tool is an integrated suite of configuration tools that guides users in creating new MCUXpresso SDK projects and also provides pin and clock tools to generate initialization C code for custom board support. It is fully integrated into MCUXpresso or you can download a separate tool.

MCUXpresso Config Tools

Get MCUXpresso Config Tools

To learn more about the basic interactions between the tools while working with either an imported MCUXpresso SDK example project or creating a new project within the IDE, watch this three-part video series.

Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools

2.4 Install Drivers and Update Debug Probe Firmware

Before using your board, it is recommended that you download update the firmware for the LPC11U35 debug probe on the board. Start by downloading the firmware and driver package and from here.

If using Windows 7 or 8, run the device driver installation executable file that is included in this package.

Pressed RESET button(SW3) then plug in the board:

Reset Button Press

You will see a device called CRPDISABLED appear in your computer file manager. Go to this drive and delete the file “firmware.bin” from that drive. Drag and drop the firmware.bin file from the firmware and driver package you just downloaded onto the CRPDISABLED drive. Released RESET button(SW3) then disconnect and reconnect the USB cable, then wait a few seconds for the new device driver to install.

You will notice that once you power the board, blue user LED at the top left of the board will flash. This is a basic program that comes pre-programmed on the LPC865 device to show it is working.

2.5 Serial Terminal

Many of the MCUXpresso SDK examples applications output data over the MCU UART. Install and configure your preferred terminal software to 9600 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the LPCXpresso860-MAX 's virtual COM port, open the device manager and look under the "Ports" group.

Not sure how to use a terminal application? Try one of these tutorials: MCUXpresso Terminal Tutorial, Tera Term Tutorial, PuTTY Tutorial

3. Build, Run

3.1 Explore the MCUXpresso SDK Example Code

The MCUXpresso SDK comes with a long list of example applications code. To see what's available, browse to the SDK boards folder of your SDK installation and select LPCXpresso860-MAX.

<SDKInstallDirectory>/boards/lpcxpresso860max

To learn more about specific example code, open the readme.txt file in an example's directory.

3.2 Build, Run and Debug MCUXpresso SDK Examples

If one or more of the demo applications or driver examples sounds interesting, you're probably wanting to know how you can build and debug yourself. The Getting Started with MCUXpresso SDK guide provides easy, step-by-step instructions on how to configure, build and debug demos for all toolchains supported by the SDK.

Use the guide below to learn how to open, build and debug an example application using the MCUXpresso IDE.

Using a different toolchain? This demo is also available for IAR and KEIL.

3.3 Building and Debugging MCUXpresso SDK Examples

Now it's time to plug in the board to debug your project...

  1. Make sure that the jumper P4 is shorted with 2-3
  2. Plug the micro USB cable from the PC into the Debug Link micro USB connector as shown
  3. In the Project Explorer window in MCUXpresso select your project
  4. In the Quick Start Panel click on Debug
  5. Choose the CMSIS-DAP debug interface
  6. Hit Resume to get the code running after the breakpoint at the beginning of main ()

More details can be found in the SDK getting started documents found in the SDK folder.

<SDKInstallDirectory>/docs/Getting Started with MCUXpresso SDK.pdf

3.4 More Examples

Several examples, demos and drivers are available within the SDK to help you get started. Some common examples are listed below:

  1. PMSM motor control
  2. Power manager demo
  3. IEC60730 safety

4. Configure Software

4.1 Clone an Example Project From MCUXpresso SDK

Option A: Use the MCUXpresso IDE to clone an example project.

Option B: Use the MCUXpresso Config Tool to clone an existing MCUXpresso SDK example for use with third-party IDEs.

4.2 Use the Pin Tool

Now, let's use the Pins tool that is part of the MCUXpresso Config Tool to show how to add a new GPIO pin to your project to blink an LED.

4.3 Use the Clocks Tool

Next use the Clocks tool that is part of the MCUXpresso Config Tool to change the clock settings and change the rate that the LED blinks.

4.4 Success

With the application modified, you will see the LPCXpresso860-MAX green LED(D2) blinking.

MCUXpresso Terminal Tutorial

MCUXpresso Terminal Tutorial

The most recent versions of MCUXpresso IDE count with a terminal emulation application. This tool can be used to display information sent from your NXP development platform's virtual serial port.

  1. Open the MCUXpresso IDE.
  2. FRDM-K32L2B3-OPEN-MCU IDE-S2
  3. Launch the MCUXpresso IDE terminal by clicking on the “Open a Terminal” button on the top of the IDE or press “Ctrl + Alt + Shift + T.”
  4. FRDM-K32L2B3-MCU-IDE-TERMINAL-S2
  5. Select Serial Terminal
  6. FRDM-K32L2B3-SELECT-TYPE-S2
  7. Configure the serial port settings (using the LPC-Link2 COM port number) to 115200 baud rate, 8 data bits, no parity and 1 stop bit, then press “OK” button.
  8. FRDM-K32L2B3-SERIAL-PORT-S2
  9. Verify that the connection is open. If connected, MCUXpresso IDE will look like the figure below at the Terminal view.

  10. FRDM-K32L2B3-VERIFY-S2
  11. You're ready to go

Tera Term Tutorial

Tera Term Tutorial

Tera Term is a very popular open source terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download Tera Term from SourceForge. After the download, run the installer and then return to this webpage to continue.
  2. Download

  3. Launch Tera Term. The first time it launches, it will show you the following dialog. Select the serial option. Assuming your board is plugged in, there should be a COM port automatically populated in the list.
  4. TERA-TERM-TURORIAL-1
  5. Configure the serial port settings (using the COM port number identified earlier) to 115200 baud rate, 8 data bits, no parity and 1 stop bit. To do this, go to Setup → Serial Port and change the settings.
  6. Verify that the connection is open. If connected, Tera Term will show something like below in its title bar.
  7. TERA-TERM-TURORIAL-2

PuTTY Tutorial

PuTTY Tutorial

PuTTY is a popular terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download PuTTY using the button below. After the download, run the installer and then return to this webpage to continue.
  2. Download

  3. Launch PuTTY by either double-clicking on the *.exe file you downloaded or from the Start menu, depending on the type of download you selected.
  4. Configure In the window that launches, select the Serial radio button and enter the COM port number that you determined earlier. Also enter the baud rate, in this case 115200.
  5. FRDM-K32L2B3-PUTTY-S2
  6. Click Open to open the serial connection. Assuming the board is connected and you entered the correct COM port, the terminal window will open. If the configuration is not correct, PuTTY will alert you.
  7. FRDM-K32L2B3-PUTTY-CERIFYCONN
  8. You're ready to go