This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

NXP LPCXpresso55S36

Overview

The LPCXpresso55S36 board provides the ideal platform for evaluation of the LPC55S3x/LPC553x MCU family, based on the Arm® Cortex®-M33 architecture. Arduino® UNO compatible shield connectors are included, with additional expansion ports around the Arduino footprint, along with a PMod/host interface port and MikroElektronika Click module site.

LPCXpresso55S36

Hardware

  • LPC55S36 Arm® Cortex®-M33 microcontroller running at up to 150 MHz

  • 256 KB flash and 96 KB SRAM on-chip

  • LPC-Link2 debug high speed USB probe with VCOM port

  • I2C and SPI USB bridging to the LPC device via LPC-Link2 probe

  • MikroElektronika Click expansion option

  • LPCXpresso expansion connectors compatible with Arduino UNO

  • PMod compatible expansion / host connector

  • Reset, ISP, wake, and user buttons for easy testing of software functionality

  • Tri-color LED

  • Full-speed USB device / host port

  • High-speed USB device / host port

  • UART header for external serial to USB cable

  • CAN Transceiver

  • Stereo audio codec with in/out line

For more information about the LPC55S36 SoC and LPCXPresso55S36 board, see:

Supported Features

The Zephyr configuration for the LPC55S36 board (lpcxpresso55s36) is as follows:

Interface

Controller

Driver/Component

NVIC

on-chip

nested vector interrupt controller

SYSTICK

on-chip

systick

IOCON

on-chip

pinmux

GPIO

on-chip

gpio

USART

on-chip

serial port

CLOCK

on-chip

clock_control

Other hardware features are not currently enabled.

Currently available targets for this board are:

  • lpcxpresso55s36

Connections and IOs

The LPC55S36 SoC has IOCON registers, which can be used to configure the functionality of a pin.

Name

Function

Usage

PIO0_17

GPIO

USR SW3

PIO0_22

GPIO

GREEN LED

PIO0_28

GPIO

RED LED

PIO0_29

USART

USART RX

PIO0_30

USART

USART TX

PIO1_11

GPIO

BLUE_LED

PIO1_18

GPIO

Wakeup SW1

System Clock

The LPC55S36 SoC is configured to use the internal FRO at 96MHz as a source for the system clock. Other sources for the system clock are provided in the SOC, depending on your system requirements.

Serial Port

The LPC55S36 SoC has 8 FLEXCOMM interfaces for serial communication. One is configured as USART for the console and the remaining are not used.

Programming and Debugging

Build and flash applications as usual (see Building an Application and Run an Application for more details).

Configuring a Debug Probe

A debug probe is used for both flashing and debugging the board. This board is configured by default to use the LPC-Link2 CMSIS-DAP Onboard Debug Probe, however the pyOCD Debug Host Tools does not yet support the LPC55S36 so you must reconfigure the board for one of the J-Link debug probe instead.

First install the J-Link Debug Host Tools and make sure they are in your search path.

Then follow the instructions in LPC-Link2 J-Link Onboard Debug Probe to program the J-Link firmware. Please make sure you have the latest firmware for this board.

Configuring a Console

Connect a USB cable from your PC to J1 (LINK2), and use the serial terminal of your choice (minicom, putty, etc.) with the following settings:

  • Speed: 115200

  • Data: 8 bits

  • Parity: None

  • Stop bits: 1

Flashing

Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b lpcxpresso55s36 samples/hello_world
west flash

Open a serial terminal, reset the board (press the RESET button), and you should see the following message in the terminal:

***** Booting Zephyr OS v2.2.0 *****
Hello World! lpcxpresso55s36

Debugging

Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b lpcxpresso55s36 samples/hello_world
west debug

Open a serial terminal, step through the application in your debugger, and you should see the following message in the terminal:

***** Booting Zephyr OS zephyr-v2.2.0 *****
Hello World! lpcxpresso55s36