1
Plug It In2
Get Software3
Build, RunSign in to save your progress. Don't have an account? Create one.
Let's take your LPCXpresso54628 board for a test drive
Something went wrong! Please try again.
Your LPCXpresso54628 board comes preloaded with a graphical HMI demo that leverages the included touchscreen. The demo demonstrates various simple GUIs, graphs and text rendering.
Something went wrong! Please try again.
Or
Something went wrong! Please try again.
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 LPCXpresso54608, which includes versions for MCUXpresso IDE, Keil MDK and IAR EWARM. Use LPCXpresso54608 as the target board; LPCXpresso54628 will have a specific SDK package from November 2017, but is binary compatible with LPCXpresso54608.
You can also use the online MCUXpresso web tool to create a custom SDK package for the LPCXpresso54628 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 LPCXpresso54628 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.
The video on this Getting Started section are for LPCXpresso54608, but the steps are the same for LPCXpresso54628.
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.
To learn more about the basic interactions between the tools while working with either an imported MCUXpresso SDK example project or creating a new project within the IDE, watch this three-part video series.
Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools
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. If you are not sure how to use a terminal application try one of these tutorials:
Not sure how to use a terminal application? Try one of these tutorials:
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.
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.
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 LPCXpresso54608 (
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 v.2.0 for LPC546xx 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.
To run the LPCXpresso54628 board at over 180MHz, a modified version of the device power library found in the MCUXpresso SDK (for LPCXpresso54608) and appropriate clock configurations need to be used. A package, including a Technical Note, power library and example code to show how to do this is provided under the Software and Tools tab for this board.
The video on this Getting Started section are for LPCXpresso54608, but the steps are the same for LPCXpresso54628.
Using a different toolchain?
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:
Using the hello_world demo as an example, the path is:
Select the desired build target from the drop-down. For this example, select the “hello_world – Debug” target.
To build the application, click the “Make” button, highlighted in red below.
The build will complete without errors.:
The LPCXpresso54628 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”.
Click the "Download and Debug" button to download the application to the target.
The application is then downloaded to the target and automatically runs to the main() function.
Run the code by clicking the "Go" button to start the application.
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.
Open the MDK IDE, which is called µVision. In the IDE, select the "Pack Installer" icon.
2. In the Pack Installer window, navigate to the section with the LPC packs (they are in alphabetical order). The Kinetis packs start with "Keil::LPC" and are followed by the MCU family name, for example "Keil::LPC54000". Because this example uses the LPCXpresso54628 platform, the LPC54000 family pack is selected. Click on the "Install" button next to the pack. This process requires an internet connection to successfully complete.
After the installation finishes, close the Pack Installer window and return to the µVision IDE.
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:
The workspace file is named
To build the demo project, select the "Rebuild" button, highlighted in red.
The build will complete without errors.
The LPCXpresso54628 board comes loaded with CMSIS-DAP debug interface from the factory.
Something went wrong! Please try again.
Documents and Videos | Description | Application Note Software |
---|---|---|
AN13165 LPC546xx SPIFI Usage and Performance | How to implement Execute In Place (XIP) feature with SPIFI, data access and performance benchmark with KEIL. |
Download |
AN13113 A Kind of SD card-based Second Bootloader on LPC54600 MCU | How to design a 2nd bootloader using SD card as the external memory media to keep the firmware image files to be executed. |
Download |
AN12563 SPI Flash Programming Algorithms for LPC546xx | Provides step-by-step guide on how to create a flash programming file for MDK, and provide a pre-compiled flash programming algorithm which can be used directly. |
Download |
AN12423 SDRAM Code Execution in LPC5460x | This article explains the means for code execution in synchronous dynamic random-access memory(SDRAM), and the performance benchmark on LPC5460x. |
|
AN12026 SDRAM interface to LPC546xx External Memory Controller | How to interface SDRAM memory to the LPC546xx External Memory Controller. |
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to external memory are listed below.
A demonstration program that uses the KSDK software to program EEPROM memory and verify the program.
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/eeprom
How to access the SDRAM.
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/emc
Demonstrates the SDK FLASIAP driver by erasing and programming a portion of on-chip flash memory
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/flashiap
Various demonstrations of basic, EEPROM read/write and flash operations
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/iap
Demonstrates using the KSDK software to program external serial flash using DMA or polling and read through AHB bus
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/spifi
Documents and Videos | Description | Application Note Software |
---|---|---|
Using ConfigTool to Create USB Project From Start |
Creating a USB project with MCUXpresso Config Tool and the LPCXpresso55S69-EVK. Note: Even though this document references the LPCXpresso55S69-EVK it can be used as a reference for the LPC54628-EVK. |
|
AN12646 USB CAN Bridge for LPC546xx | How to build an example to implement a communication bridge between USB bus and CAN-bus. |
|
TN00032 LPC546xx Crystal-less USB Solution | This technical note explains the steps required to modify the software to integrate a crystal-less USB device operation in full-speed mode in the LPC556xx application. |
|
AN11985 LPC546xx SD Card with FATFS | Introduces the SD/MMC card interface on LPC546xx devices and how to access the SD card with the SD/MMC interface based on SDK FATFS. |
|
LPC54608 LIN Master Basic Usage Sharing | A simple LIN master example using the LPCXpresso 54608 board. |
|
AN12384 LPC5460x UART Secondary Bootloader using YModem | In this application note, a simple SBL software is designed to optionally load the new image file from user UART terminal and keep it in the on-chip flash memory for next run. |
Download |
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to wired communications are listed below.
Demonstrates how to implement a command line shell application.
Path: <SDK_PATH>/boards/lpcxpresso54628/demo_apps/shell
How to use I2C, SPI and USART drivers to do board to board transfer with DMA.
Path: <SDK_PATH>/boards/lpcxpresso54628/cmsis_driver_examples
A number of driver examples exist within the SDK including GPIO, I2C, I2S, SPI and USART.
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples
Implement a minimal CANopen Manager which produces a cyclic heartbeat message and waits for CANopen Slave devices to reply.
Path: <SDK_PATH>/boards/lpcxpresso54628/canopen_examples
Multiple lwIP TCP/IP examples for bare metal or FreeRTOS.
Path: <SDK_PATH>/boards/lpcxpresso54628/lwip_examples
Multiple examples that show how to use interrupt or polling-based transfer API in SDHC driver to access the SD card and using the SDCARD driver based FATFS disk in SDK software.
Path: <SDK_PATH>/boards/lpcxpresso54628/sdmmc_examples
A number of USB examples for host and device operation exist within the SDK.
Path: <SDK_PATH>/boards/lpcxpresso54628/usb_examples
LPC54628 Secure CANFD Bootloader V100 - Secure CANcrypt Bootloader for LPC5461x/LPC54628 devices from Embedded Systems Academy.
Micro CANopen Plus Source Code - Compliant and mature CANopen and CANopen FD follower and manager stack with a range of module add-ons. Designed to run in any environment: bare-metal, RTOS or consumer OS.
Documents and Videos | Description |
---|---|
Connecting the LPC55S69 to Amazon Web Services |
Demo focused on the WIFI enablement and cloud connectivity through AWS using MCUXpresso and an Amazon Alexa. NOTE: While this document references the LPC55S69 it can be used as a reference with the shadow serial example for the LPC54628 as well. |
How to Add Peripherals to AWS IOT and Alexa Skills | Step-by-step approach to adding peripherals to your AWS IOT and Alexa Skills project. |
Amazon FreeRTOS Documentation | FreeRTOS is a market-leading real-time operating system (RTOS) for microcontrollers and small microprocessors. Find resources here included users guide, API reference, porting guide and qualification guide. |
AWS IoT developer guide | AWS IoT provides device software that can help you integrate your IoT devices into AWS IoT-based solutions. |
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to wireless connectivity are listed below.
The serial demo shows usage of SerialMWM Wi-Fi module connected over UART interface. The iperf example provides basic commands to measure performance of network stack.
Path: <SDK_PATH>/boards/lpcxpresso54628/wifi_examples
The simple lightbulb example illustrates how client application and things communicate with the Shadow service.
Path: <SDK_PATH>/boards/lpcxpresso54628/aws_examples/shadow_wifi_serial
Documents and Videos | Description |
---|---|
TN00038 LPC546xx Power Library Source Code |
This technical note provides the source code of the power library used with the SDK software platform |
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to power management are listed below.
Shows the usage of normal power mode control APIs for entering the three kinds of low power mode: Sleep mode, Deep Sleep mode and Sleep Power Down mode.
Path: <SDK_PATH>/boards/lpcxpresso54628/demo_apps/utick_wakeup
Shows wakeup from deep sleep mode using MicroTick timer.
Path: <SDK_PATH>/boards/lpcxpresso54628/demo_apps/power_manager_lpc
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to audio are listed below.
Bare metal and FreeRTOS examples that enumerate a recording or playback device
USB Device: Audio generator, audio speaker, composite hid audio
USB Host: Audio speaker
Path: <SDK_PATH>/boards/lpcxpresso54628/usb_examples
How to use DMA to transfer data from DMIC to memory
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/dmic
DMA and Interrupt transfer examples show how to use one I2S interface to continuously playback the sine wave to output
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/i2s
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to touch and sensing are listed below.
Shows how to change a cursor’s position in reaction to detected touch.
Path: <SDK_PATH>/boards/lpcxpresso54628/demo_apps/touch_cursor
Serial terminal, slide show and termperature control examples demonstrate how to use the emWin library to render text and graphical widgets of the emWin library.
Path: <SDK_PATH>/boards/lpcxpresso54628/emwin_examples
Demonstrates the graphical widgets of the emWin library.
Path: <SDK_PATH>/boards/lpcxpresso54628/emwin_gui_demo
The Rocktech LCD module is used on the LPCXpresso54628 Development Board.
Documents and Videos | Description |
---|---|
Graphical User Interfaces for NXP Microcontrollers | Learn more about your GUI options for NXP Microcontrollers. |
AN13113 A Kind of SD card-based Second Bootloader on LPC54600 MCU | How to implement a typical LVGL GUI application using GUI Guider on the LPC54608. |
LVGL Open-Source Graphics Library | LVGL is a free and open-source embedded graphic library with features that enable you to create embedded GUIs with intuitive graphical elements, beautiful visual effects and a low memory footprint. |
GUI Guider | A user-friendly graphical user interface development tool from NXP that enables the rapid development of high-quality displays with the open-source LVGL graphics library. |
AN13110 LPC54608 Crank Storyboard Engine Integration with IAR | How to integrate Storyboard engine to LPC54608 base on freeRTOS. |
GUI Development With emWin and AppWizard | How to use the different features in AppWizard to create complete, ready-to-run projects based on emWin. |
TN00028 LPC54608 emWin Touch and Draw example with FreeRTOS | This technical note describes an example on LPC54608 XPCXpresso board using emWin graphics library and FreeRTOS. |
TN00025 LPC54608 LCD Dual Frame Butter with eXecute-in-Place (XIP) from Quad SPI flash | This technical note gives an overview of examples that use LCD with code executing from Quad SPI flash. |
TN00024 LPC54608 TCP Socket example with emWin and FreeRTOS | This technical note gives an overview of an example that shows TCP server and clients connecting on a custom port and exchanging ADC data and LED controls over the Ethernet network and displaying the information on the LCD display using emWin graphics and FreeRTOS. |
TN00022 LPC54608 Temperature logging on LCD using emWin’s graphics library | This technical note describes the example that logs temperature on LPC54608 LPCXpresso board LCD using the graphics library features of emWin. |
TN00021 LPC54608 LCD Dual Frame Buffer with Images loaded from Quad SPI flash | This technical note gives an overview of examples that uses LCD with images loaded from Quad SPI flash. |
AN12732 HDMI-CEC Implementation on LPC5500 Series |
How to implement High-Definition Multimedia Interface (HDMI)-Consumer Electronics Control (CEC) functions as a TV set or a projector that support the HDMI-CEC protocol based on LPC5500 series with GPIO and SCT used. NOTE: While this indicates the LPC5500 it can be used as a reference for the LPC54628, although some changes are required. |
Several examples, demos and drivers are available within the SDK to help you get started. Some common examples related to display and graphics are listed below.
Two examples show how to use the LCD hardware cursor and how to use the LCD driver to drive a TFT panel.
Path: <SDK_PATH>/boards/lpcxpresso54628/driver_examples/lcdc
A demo application to show littlevgl widgets.
Path: <SDK_PATH>/boards/lpcxpresso54628/littlevgl_examples
Serial terminal, slide show and termperature control examples demonstrate how to use the emWin library to render text and graphical widgets of the emWin library.
Path: <SDK_PATH>/boards/lpcxpresso54628/emwin_examples
Demonstrates the graphical widgets of the emWin library.
Path: <SDK_PATH>/boards/lpcxpresso54628/emwin_gui_demo
NXP emWin Libraries - NXP has partnered with SEGGER Microcontroller to offer the high performance emWin embedded graphics libraries in binary form for free commercial use with any Arm Cortex-M microcontrollers from NXP.
emWin (GUI / Graphics Package) - emWin is one of the most efficient and comprehensive GUIs available. It is written in ANSI C and supports any display controller, display and CPU. emWin includes the AppWizard GUI design tool and a Simulation Environment to help speed your development.
Embedded Wizard - Enables the creation of sophisticated GUIs for MCUs and MPUs. The GUI development is speeded-up with the use of the built-in WYSIWYG editing facility, instant prototyping, simulating and debugging on PC.
Documents and Videos | Description | Application Note Software |
---|---|---|
AN12583 Enabling Camera on LPC5460x with State Configurable Timer State Machine | How to design a software camera interface solution with SCT and DMA on LPC5460x. |
Download |
Several examples, demos and drivers are available within the SDK to help you get started. A common example related to camera interfaces is listed below.
A simple demonstration program based on the MCUXpresso SDK. It is enumerated as a camera and users can see the video of the device by using a PC test tool.
Path: <SDK_PATH>/boards/lpcxpresso54628/usb_examples/usb_device_video_virtual_camera
Motor control is a complicated and advanced topic, with a wide range of intricacies and pitfalls that depend on motor type, number of motors, and sensored or sensorless motor drivers.
NXP has a number of ready-to-use motor control algorithms [NOTE: middleware], and the best way to get started is with the FreeMaster examples included in the SDK. These examples utilize the Time Debugging Tool – user-friendly real-time debug monitor and data visualization tool that enables runtime configuration and tuning of embedded software applications.
FreeMASTER supports non-intrusive monitoring of variables on a running system and can display multiple variables on oscilloscope-like displays as standard widgets (gauges, sliders and more) or as data in text form, offering simple-to-use data recorders. It can link with HTML, MATLAB®, Excel to other scriptable frameworks or even popular visual programming tools like Node-RED .”
Documents and Videos | Description |
---|---|
FreeMASTER How To | A starting guide for engineers using FreeMASTER tool. |
FreeMASTER 3.0 Installation Guide | This article will walk you through the installation process of FreeMASTER 3.0. |
Several examples, demos and drivers are available within the SDK to help you get started. A common example related to Motor Control is listed below.
Watch variables and graphs over various interface options.
Path: <SDK_PATH>/boards/lpcxpresso54628/freemaster_examples
FreeMASTER Communication Driver User’s Guide - Describes the embedded-side software driver which implements a serial interface between the application and the host PC and covers the native Serial UART communication and CAN communication for the applicable devices.
Path: <SDK_PATH>/middleware/freemaster/doc/user_guide
Documents and Videos | Description |
---|---|
AN13073 OTA update via TFTP on LPC5460x | Introduces a simple OTA update solution with a TFTP (Trivial File Transfer Protocol) through a WiFi module. |
Training | Description |
---|---|
Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools | This three-part video series covers the basic interactions between the MCUXpresso IDE and Config Tools when working with either an imported SDK example project or creating a new one.. |
Hands-On Workshop: LPC546xx MCUs: A 180 MHz ARM Cortex-M4-based MCU for Your Cost-effective HMI Applications | Gain the knowledge and skills to get up and running with the LPC546xx MCU family, includes our comprehensive ecosystem of software and tools that support it. |
AWS Training | Training programs and offerings from the experts at AWS |
LPC546x Training | Full list of on-demand training, how-to videos and webinars from NXP about this product |
Connect with other engineers and get expert advice on designing with the LPC54628 on one of our community sites.
No problem! Your board simply came in the old packaging and has a different out-of-box demo loaded into the flash memory.
You should be seeing the RGB LED toggling between each of the three colors; red, blue and green. It's OK to move onto the next step when you're ready.
Try proceeding to the next steps to get other example applications running on your board. If you still have problems, try contacting us through the NXP Community.
Before using KDS IDE with KSDK, it is recommended that you make sure that your tools are up-to-date. The steps discussed below are shown using the Windows version of KDS, but are identical for Mac and Linux users.
Select "Help" -> "Check for Updates".
Install all updates from Freescale/NXP – these are denoted by “com.NXP.xxx” or “com.nxp.xxx”. There may also be updates for things such as toolchain or debug interfaces. While these additional updates are typically OK to install, sometimes they may cause issues since they aren’t released as part of the KDS toolchain.
The following steps will guide you through opening the hello_world application. These steps may change slightly for other example applications as some of these applications may have additional layers of folders in their path.
NOTE
The steps required for Linux and Mac OS are identical to those for Windows.
Select File->Import from the KDS IDE menu. In the window that appears, expand the "Project of Projects" folder and select "Existing Project Sets". Then, click the "Next" button.
Click the "Browse" button next to the "Import from file:" option.
Point to the example application project, which can be found using this path:
For this guide, choose the specific location:
After pointing to the correct directory, your "Import Working Sets and Projects" window should look like the figure below. Click the "Finish" button.
There are two project configurations (build targets) supported for each KSDK project:
Choose the appropriate build target, "Debug" or "Release", by clicking the downward facing arrow next to the hammer icon, as shown below. For this example, select the "Debug" target.
The library starts building after the build target is selected. To rebuild the library in the future, click the hammer icon (assuming the same build target is chosen).
The FRDM-KE15Z board comes loaded with the mbed/CMSIS-DAP debug interface from the factory. If you have changed the debug OpenSDA application on your board, visit http://www.nxp.com/opensda for information on updating or restoring your board to the factory state.
NOTE
Mac users must install the J-Link OpenSDA application in order to use the KDS IDE to download and debug their board.
Connect the development platform to your PC via USB cable between the "SDAUSB" USB port on the board and the PC USB connector.
Open the terminal application on the PC (such as PuTTY or TeraTerm) and connect to the debug COM port you determined earlier. Configure the terminal with these settings:
For Linux OS users only, run the following commands in your terminal. These install libudev onto your system, which is required by KDS IDE to launch the debugger.
user@ubuntu:~$ sudo apt-get install libudev-dev libudev1
user@ubuntu:~$ sudo ln –s /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libudev.so.0
Ensure that the debugger configuration is correct for the target you're attempting to connect to. This refers to the OpenSDA interface of your board. If you’re unsure what your board has, please consult Appendix B of the PDF linked in the top right hand corner of this dialog.
To check the available debugger configurations, click the small downward arrow next to the green "Debug" button and select "Debug Configurations".
In the Debug Configurations dialog box, select debug configuration that corresponds to the hardware platform you’re using. For Windows or Linux users, select is the mbed/CMSIS-DAP option under OpenOCD For Mac users, select J-Link.
After selecting the debugger interface, click the "Debug" button to launch the debugger.
The application is downloaded to the target and automatically run to main():
Start the application by clicking the "Resume" button:
The hello_world application is now running and a banner is displayed on the terminal. If this is not the case, check your terminal settings and connections.
This section contains the steps to install the necessary components required to build and run a KSDK demo application with the Arm GCC toolchain, as supported by the Kinetis SDK. There are many ways to use Arm GCC tools, but this example focuses on a Windows environment. Though not discussed here, GCC tools can also be used with both Linux OS and Mac OSX.
Download and run the installer from launchpad.net/gcc-arm-embedded. This is the actual toolchain (i.e., compiler, linker, etc.). The GCC toolchain should correspond to the latest supported version, as described in the Kinetis SDK Release Notes.
The Minimalist GNU for Windows (MinGW) development tools provide a set of tools that are not dependent on third party C-Runtime DLLs (such as Cygwin). The build environment used by the KSDK does not utilize the MinGW build tools, but does leverage the base install of both MinGW and MSYS. MSYS provides a basic shell with a Unix-like interface and tools.
Download the latest MinGW mingw-get-setup installer from sourceforge.net/projects/mingw/files/Installer/.
Run the installer. The recommended installation path is C:\MinGW, however, you may install to any location.
NOTE
The installation path cannot contain any spaces.
Ensure that the "mingw32-base" and "msys-base" are selected under Basic Setup.
Click "Apply Changes" in the "Installation" menu and follow the remaining instructions to complete the installation.
Add the appropriate item to the Windows operating system Path environment variable. It can be found under Control Panel -> System and Security -> System -> Advanced System Settings in the "Environment Variables..." section. The path is:
Assuming the default installation path, C:\MinGW, an example is shown below. If the path is not set correctly, the toolchain does not work.
NOTE
If you have "C:\MinGW\msys\x.x\bin" in your PATH variable (as required by KSDK 1.0.0), remove it to ensure that the new GCC build system works correctly.
Create a new system environment variable and name it ARMGCC_DIR. The value of this variable should point to the Arm GCC Embedded tool chain installation path, which, for this example, is:
C:\Program Files (x86)\GNU Tools Arm Embedded\4.9 2015q3
Reference the installation folder of the GNU Arm GCC Embedded tools for the exact path name of your installation.
Download CMake 3.0.x from www.cmake.org/cmake/resources/software.html.
Install CMake, ensuring that the option "Add CMake to system PATH" is selected when installing. It's up to the user to select whether it's installed into the PATH for all users or just the current user. In this example, the assumption is that it's installed for all users.
Follow the remaining instructions of the installer.
You may need to reboot your system for the PATH changes to take effect.
To build an example application, follow these steps.
1. If not already running, open a GCC Arm Embedded tool chain command window. To launch the window, from the Windows operating system Start menu, go to “Programs -> GNU Tools Arm Embedded
Change the directory to the example application project directory, which has a path like this:
For this guide, the exact path is:
Type “build_debug.bat” on the command line or double click on the "build_debug.bat" file in Windows operating system Explorer to perform the build. The output is shown in this figure:
The GCC tools require a J-Link debug interface. To update the OpenSDA firmware on your board to the latest J-Link app, visit www.nxp.com/opensda. After installing the J-Link OpenSDA application, download the J-Link driver and software package from www.segger.com/downloads.html.
Connect the development platform to your PC via USB cable between the "SDAUSB" USB port on the board and the PC USB connector.
Open the terminal application on the PC (such as PuTTY or TeraTerm) and connect to the debug COM port you determined earlier. Configure the terminal with these settings:
Open the J-Link GDB Server application. Assuming the J-Link software is installed, the application can be launched by going to the Windows operating system Start menu and selecting "Programs -> SEGGER -> J-Link
Modify the settings as shown below. The target device selection chosen for this example is the “MK64FN1M0xxx12” and use the SWD interface.
After it is connected, the screen should resemble this figure:
If not already running, open a GCC Arm Embedded tool chain command window. To launch the window, from the Windows operating system Start menu, go to "Programs -> GNU Tools Arm Embedded
Change to the directory that contains the demo application output. The output can be found in using one of these paths, depending on the build target selected:
For this guide, the path is:
Run the command "arm-none-eabi-gdb.exe
Run these commands:
The application is now downloaded and halted at the reset vector. Execute the "monitor go" command to start the example application.
The hello_world application is now running and a banner is displayed in the terminal window.
Arm mbed Online Development Site
MCUXpresso SDK
Getting Started with the MCUXpresso SDK
Install your toolchain
MCUXpresso Config Tools
Serial terminal