LPCXpresso54628
Overview
The LPCXpresso54628 development board (OM13098) uses an NXP LPC54628 MCU based on an Arm Cortex-M4F core.
Hardware
LPC54628 M4F running at up to 220 MHz
Memory
512KB of on-chip flash memory
200KB of on-chip SRAM (160KB main + 32KB SRAMX + 8KB USB)
On-board high-speed USB based debug probe (LPC-Link2) with CMSIS-DAP and J-Link protocol support
External debug probe option
Three user LEDs, target reset, ISP and interrupt/user buttons
Expansion options based on Arduino UNO and PMOD, plus additional expansion port pins
8MB SPIFI serial flash, 128Mb SDRAM
10/100 Mbps Ethernet, full-speed and high-speed USB, CAN
More information can be found here:
Supported Features
The lpcxpresso54628 board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
lpcxpresso54628/lpc54628 target
On-target memory for this board target: 160 KiB of RAM, 512 KiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
ARM Cortex-M4F CPU1 |
|
ARM architecture |
on-chip |
LPC Flexcomm node8 |
|
CAN |
on-chip |
NXP LPC SoC series MCAN CAN FD controller2 |
|
Clock control |
on-chip |
LPC SYSCON & CLKCTL IP node1 |
|
Counter |
on-chip |
NXP MCUX Standard Timer/Counter5 |
|
on-chip |
NXP Multirate Timer1 |
||
on-chip |
NXP Multirate Timer Channel1 |
||
on-chip |
Driver that uses the NXP LPC RTC High resolution counter1 |
||
CRC |
on-chip |
NXP LPC CRC device1 |
|
Ethernet |
on-chip |
NXP ENET QOS Ethernet Controller1 |
|
on-chip |
Synopsys DesignWare MAC MDIO controller1 |
||
on-board |
Generic MII PHY1 |
||
on-chip |
Synopsys DesignWare MAC PTP (Precision Time Protocol) Clock1 |
||
Flash controller |
on-chip |
NXP (In-Application Programming) flash memory controller for the lpc54xxx family1 |
|
GPIO & Headers |
on-chip |
LPC GPIO1 |
|
on-chip |
LPC GPIO port device6 |
||
Hardware information |
on-chip |
NXP LPC 128-bit Unique identifier1 |
|
I2C |
on-chip |
LPC I2C1 |
|
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
NXP GINT (Grouped GPIO Input Interrupt) controller2 |
||
on-chip |
NXP Pin interrupt and pattern match engine (PINT)1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
MTD |
on-chip |
Flash node1 |
|
MUX |
on-chip |
NXP INPUTMUX peripheral binding1 |
|
Pin control |
on-chip |
LPC I/O Pin Configuration (IOCON)1 |
|
on-chip |
LPC pinctrl node1 |
||
PWM |
on-chip |
NXP SCTimer PWM1 |
|
Reset controller |
on-chip |
LPC SYSCON Peripheral reset controller1 |
|
RTC |
on-chip |
NXP LPC RTC1 |
|
SDHC |
on-chip |
NXP LPC SDIF SD host controller1 |
|
Sensors |
on-board |
FXOS8700 6-axis accelerometer/magnetometer sensor1 |
|
Serial controller |
on-chip |
LPC USART1 |
|
SRAM |
on-chip |
Generic on-chip SRAM1 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
USB |
on-chip |
||
Watchdog |
on-chip |
LPC Windowed Watchdog Timer1 |
Connections and IOs
The IOCON controller can be used to configure the LPC54628 pins.
Name |
Function |
Usage |
|---|---|---|
PIO0_29 |
UART |
USART RX (VCOM) |
PIO0_30 |
UART |
USART TX (VCOM) |
PIO3_14 |
GPIO |
User LED1 |
PIO3_3 |
GPIO |
User LED2 |
PIO2_2 |
GPIO |
User LED3 |
Ethernet
The board carries a Microchip LAN8720A 10/100 Mbit/s PHY on MDIO address 0, connected to the LPC54628 Ethernet MAC over RMII and to the RJ45 jack J4. The MAC is a Synopsys DesignWare Ethernet QoS core and is driven by the generic drivers/ethernet/dwc_mac driver. Jumpers JP11 and JP12 must be in their default Ethernet position; in the USB position they disconnect the RMII data lines.
The PHY sources the 50 MHz RMII reference clock on its nINT/REFCLKO pin,
so the PHY interrupt is not available and the driver polls the link state.
The same clock drives the PTP timestamp counter.
Programming and Debugging
The lpcxpresso54628 board supports the runners and associated west commands listed below.
| flash | debug | attach | debugserver | |
|---|---|---|---|---|
| linkserver | ✅ (default) | ✅ (default) | ✅ | ✅ |
Build and flash applications as usual (see Building an Application and Run an Application for more details).
Configuring a Debug Probe
LinkServer is the default runner for this board. A debug probe is used for both flashing and debugging the board. This board is configured by default to use the on-board LPC-LINK2 CMSIS DAP Onboard Debug Probe in the CMSIS-DAP mode. To use this probe with Zephyr, you need to install the LinkServer Debug Host Tools and make sure they are in your search path. Refer to the detailed overview about Application Debugging for additional information.
Configuring a Console
Connect a USB cable from your PC to the LPC-Link2 USB connector, 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 lpcxpresso54628 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 build v4.4.0 ***
Hello World! lpcxpresso54628/lpc54628
Debugging
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b lpcxpresso54628 samples/hello_world
west debug