/Hello_LPCXpresso55S69

Simple Hello World example for LPCXpresso55S69

Primary LanguageCApache License 2.0Apache-2.0

Hello example for LPCXpresso55S69

Simple Hello World example for NXP LPCXpresso55S69 Development Board. This example prints "Hello World" and a counter value via the standard output which is routed to the debug console through Virtual COM port.

Keil Studio Cloud - Import Project CMSIS Compliance example workflow

Prerequisites

Tools

DAPLink FW

To be recognized correctly by the Device Manager extension in VS Code, you need to replace the original LPC-Link2 firmware with a DAPLink firmware. Please follow the instructions on Updating LPCXpresso firmware.

Build Solution/Project

Using Visual Studio Code with extensions

Required tools described in file 'vcpkg-configuration.json' should be automatically installed by vcpkg. You can see the status of vcpkg in the status bar.

Required CMSIS packs need to be also installed. In case a required pack is missing, a notification window will pop-up to install the missing pack.

Open the 'CMSIS' view from the side bar, select desired 'Build Type' and press the 'Build' button.

Using Command Line Interface (CLI)

Download required packs (not required when the packs are already available) by executing the following commands:

csolution list packs -s hello.csolution.yml -m >packs.txt
cpackget update-index
cpackget add -f packs.txt

Build the project by executing the following command:

cbuild hello.csolution.yml

Run the application

Using Visual Studio Code with extensions

  • Connect the board's DAPLink USB to the PC (provides also power).
  • Open the 'Device Manager' view from the side bar:
    • Make sure your board is detected (the view should show 'LPCXpresso55S69').
    • Press the 'Open Serial' button next to the board name and select a baud rate of 115200.
  • Open the 'CMSIS' view from the side bar:
    • Press the 'Run' button and wait until the image is programmed and starts running.
  • Observe the terminal output.

Debug the application

Before starting to debug the application, make sure that you have gone through the steps as described in the run the application section.

Using Visual Studio Code with extensions

Open the 'CMSIS' view from the side bar and press the 'Debug' button.