NXP LPCXpresso55S69 (uGOAL)

Introduction

The NXP LPCXpresso55S69 Board is an development board of the manufacterer NXP. The device is based on the Arm® Cortex®-M33 architecture with 320kB of RAM and 640kB of ROM. It is capable as an application controller for the iRJ45/SoM module.

Currently the LPCXpresso55S69 is only compatible with uGoal.

Software

Integrated Development Environment

The MCUXpresso IDE by NXP is a free Integrated Development Environment which provides several utilities to develop and debug applications for the LPCXpresso55S69 Board. It is available on the NXP website.

Building and Flashing

For compiling the example code, the GNU Arm Embedded Toolchain is required. It can be obtained in several ways. Further information can be found here: Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer. To flash the application the MCUXpresso IDE is needed.

Make sure, the toolchain is added properly to your path variable after the installation.

Getting Started

Preparations

Hardware Requirements

Arduino PMOD Adaptershield

Make sure following settings are set:

  • J13 - Connect “iRJ45” with “Sockel”

  • J8 - Connect “CS_SOURCE” with “PB2”

  • J7 - Connect “RST_SOURCE” with “PD7”

  • Set all DIP-Switches to “OFF”

NXP LPCXpresso55S69 Board

Set the Jumper J1 - DFU if you want to flash the device per command line.

Target System

Connect both boards (see Figure above). Voltage supply is done through the VCC33_Sockel by the LPCXpresso55S69.

Please connect both boards with each other, before you connect them per USB to your computer.

EtherCAT Distributed Clocks

The Platform LPCXpresso55S69 supports the feature EtherCAT Distributed Clocks (DC). To use the signal SYNC1 and SYNC0 bridges are needed to connect the pins of the Arduino Adaptershield with the Interrupt pins on the target. Connected as shown in the figure below, both of the SYNC signals cause an interrupt on the LPCXpresso55S69.

Using delivered build system

Prerequisites to flash LPCXpresso55S69

If you want flash the device per command line, there are following prerequisites to do:

  1. Install MCUXpresso IDE from nxp, as this brings the necessary RedlinkServer.

  2. Add the “binaries” directory, located in the installation directory of the MCUXpresso IDE, to your PATH variable (for e.g. “C:/nxp/MCUXpressoIDE_11.4.0_6224/ide/binaries” ).

  3. Copy the target description files “ugoal/plat/lpc55s69/vendor/LPC55S69.xml” and “LPC55S69_part.xml” into the mentioned directory “binaries”.

Build and flash

Within a example folder “ugoal/projects/ugoal/<example name>/gcc” of the software delivery, build the firmware with following commands:

make PLATFORM=lpc55S69

Use following command within the example folder, to flash the application onto the LPCXpresso55S69:

make PLATFORM=lpc55S69 flash

If you want to clean the build, use following command:

make PLATFORM=lpc55S69 clean

Using MCUXpresso IDE by NXP

This chapter describes the integration of the source files into a new e2 studio project, to edit, compile and debug the software delivery.

Automated project generation

From any project folder a project generator can be run to create a MCUXpresso IDE project for the application. The project generator requires a python3 installation. Required dependencies are installed automatically.

If you want to create a MCUXpresso IDE project, run the following command:

For the LPCXpresso55S69 the template number 3 needs to be chosen.

The generated project should be imported into MCUXpresso IDE using “Import → Existing Projects into Workspace” and be browsing to the project folder:

The imported project can be compiled and debugged using “Debug As → 2 MCUXpresso IDE LinkServer”:

Using MCUXpresso IDE ConfigTools

The MCUXpresso contains ConfigTools for a simple start in configuring peripheral devices and pins of the NXP LPCXpresso55S69. As uGOAL delivers his own configuration there are a few things to do to use the ConfigTools in the project:

  1. Open the *.mex file in the “Project Explorer”.

  2. Choose “ConfigTools → Pins” in the upper toolbar.

  3. Right click on the error message in the lower right “Problems”-Window and choose “Add SDK component…” to include the missing Paths to the project.

  4. Choose “ConfigTools → Peripherals” in the upper toolbar.

  5. Right click on the error messages in the lower right “Problems”-Window and choose “Add SDK component…” to include the missing Paths to the project.

  6. Change back to perspective “develop (default)”.

  7. Remove or Exclude the directories “plat/lpc55s69/vendor/component”, “/drivers”, “/LPC55S69” and “/utilities” via Right Click at the appropriate directory and choosing “Properties → C/C++ Build → Settings” as shown in the image below.

Debugging

UART

The UART-interface of the LPCXpresso55S69 is accessable through the connected USB cable on the Debug Link P6 USB port. You can access the UART by launching a serial monitor like putty. Choose the following settings:

Speed

115200

Data Bits

8

Stop Bits

1

Parity

None

Flow Control

XON/XOFF

Application

After setting up the serial monitor and starting the application, the output should look like this:

Known Issues

Following you’ll find current limitations regarding the LPCXpresso55S69.

  • There are no known issues of this target.