1
Plug It In2
Get Software3
Build, RunLet's take your LPC54S018M board for a test drive! You have the choice of watching the sequence in a short video or following the detailed actions list below.
Your LPCXpresso54S018M board comes preloaded with a “Spirit Level” application and on-board diagnostic
software. To run just the Spirit Level demo only, connect the board to a USB power supply
or computer using connector J1
at the top left of the board. The user LEDs (LED1, LED2 and LED3)
indicate if the board is level along the horizontal axis of the board. Tilt the board towards
or away from you to see the LEDs change.
Something went wrong! Please try again.
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 a pre-configured SDK release for the LPC54S018M, which includes versions for MCUXpresso IDE, Keil MDK and IAR EWArm. Use LPC54S018M as the target board.
You can also use the online MCUXpresso web tool to create a custom SDK package for the LPC54S018M using the SDK builder.
Something went wrong! Please try again.
NXP offers a free, GNU/Eclipse based toolchain called MCUXpresso IDE.
Want to use a different toolchain?
No problem! The MCUXpresso SDK includes support for other tools such as IAR and Keil.
To set up your LPC54S018M for use with 3rd party tools, first install LPCScrypt in order to install the board’s device drivers. The video below shows how to use LPCScrypt to program your board’s debug probe using this utility.
Something went wrong! Please try again.
The MCUXpresso Config Tool is an integrated suite of configuration tools that guides users in creating new MCUXpresso SDK projects, and provides pin and clock tools to generate initialization C code for custom board support.
Something went wrong! Please try again.
Most of the MCUXpresso SDK examples set up for IAR and Keil tools use the MCU UART for printf output, and this is also an option for the MCUXpresso IDE. Note that MCUXpresso IDE V11.0 onwards has a built-in serial terminal feature.
Not sure how to use a terminal application? Try one of these tutorials: Tera Term Tutorial, PuTTY Tutorial
Something went wrong! Please try again.
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 LPC54S018M /boards/LPC54S018M
.
To learn more about specific example code, open the readme.txt file in an example’s directory.
Something went wrong! Please try again.
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 SDK for LPC540xx 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.
Something went wrong! Please try again.
The following steps will guide you through opening the led_output application. These steps may change slightly for other example applications as some of these applications may have additional layers of folders in their path.
If not already done, open the desired example application workspace. Most example application workspace files can be located using the following path:
<install_dir>/boards/<sdk_board_name>/<example_type>/<application_name>/iar</application_name></example_type></sdk_board_name></install_dir>
Using the hello_world demo as an example, the path is:
/boards/LPC54S018M/driver_examples/gpio/led_output/iar
The LPC54S018M board comes loaded with the CMSIS-DAP debug interface from
the factory. Connect the development platform to your PC via USB cable to J8
“Debug Link”.
Something went wrong! Please try again.
After the MDK tools are installed, Cortex® Microcontroller Software Interface Standard (CMSIS) device packs must be installed to fully support the device from a debug perspective. These packs include things such as memory map information, register definitions and flash programming algorithms. Follow these steps to install the appropriate CMSIS pack.
The following steps will guide you through opening the gpio_led_output application. These steps may change slightly for other example applications as some of these applications may have additional layers of folders in their path.
If not already done, open the desired demo application workspace in:
<install_dir>/boards/<sdk_board_name>/<example_type>/<application_name>/mdk</application_name></example_type></sdk_board_name></install_dir>
The workspace file is named
/boards/LPC54S018M/driver_examples/gpio/led_output/mdk/gpio_led_output.uvmpw
The LPC54S018M board comes loaded with CMSIS-DAP debug interface from the factory.
Something went wrong! Please try again.
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.
Verify that the connection is open. If connected, Tera Term will show something like below in it's title bar
You're ready to go
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.
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