Getting Started with KW47-LOC

最終更新日時: Dec 21, 2025サポート Localization Board for KW47 Bluetooth Channel Sounding MCU

このドキュメントの内容

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build and Run
  • 4

    Create
  • 5

    MCUXpresso Developer Experience

1. Plug It In

Take your board for a test drive! In the following steps, you may either watch the sequence in a short video, or follow the detailed actions listed below.

1.1 Get Familiar with the Board

The KW47-LOC board is pre-programmed with a wireless localization demo. This serves as a sanity check to verify that the device is working as expected, right out of the box.

Get Familiar with the Board

Get familiar with the board

1.2 Plug In the Board

For this step, you will need two KW47-LOC boards. Connect a USB Type‑C cable from connector J3 to a host computer or power supply to power up the board and run the demo program. At this point, you should see the Blue LED blinking at a steady rhythm. Follow the steps shown in the video to run the demo.

Plug in the Board

Plug in the board

2. Get Software

2.1 Install Your Toolchain

NXP offers a toolchain called MCUXpresso for Visual Studio (VS) Code. Please download MCUXpresso for VS Code v25.09 or higher by clicking the button below.

Visual Studio Code

Get VS Code

Learn how to install VS Code onto your host PC by following the MCUXpresso tutorial.

2.2 Jump Start Your Design with the MCUXpresso SDK

The NXP extension provides tools that add software repositories to the VS Code workspace. This software repository can be provided from three sources:

  • Remote Git URL
  • NXP MCUXpresso archive file
  • Existing Git folder

In this section, you will learn how to import the MCUXpresso SDK using the remote Git repository option. To import the repository this way, follow these steps:

  1. Click the MCUXpresso extension Icon
  2. Click the "QUICKSTART PANEL" tab and then click the "Import Repository" button. After pressing that button a new import window will appear
  3. Importing a Repository

     Jump Start Your Design with the MCUXpresso SDK - IMG1
  4. Select the "Remote" option to import the provided SDK files
  5. Browse to the Repository options by clicking the arrow button and search for "MCUXpresso SDK" option
  6. Click the arrow button for Revision and search for version "v25.09.00" or newer
  7. Click "Browse" for the Location folder and select a common destination folder to store your SDK
  8. Enter a name for the new SDK
  9. Click the "Import" button and wait for the installation
  10. Selecting and Importing the MCUXpresso SDK Version

     Jump Start Your Design with the MCUXpresso SDK - IMG2

2.3 MCUXpresso Config Tools

The MCUXpresso Config Tool is an integrated suite of tools that guide users in creating new MCUXpresso SDK projects and also provides pin and clock tools to generate initialization C code for custom board support. The tool is fully integrated as a part of MCUXpresso integrated development environment (IDE) or as a separate tool (if using a different IDE).

Click the Get MCUXpresso Config Tools button below to get the installer.

MCUXpresso Config Tools

Get MCUXpresso Config Tools

2.4 Programming and Provisioning Tools

The MCUXpresso Secure Provisioning (SEC) Tool is a graphical user interface (GUI)-based application provided to simplify the generation and provisioning of bootable executables on NXP microcontroller unit (MCU) devices. It supports secure programming and device provisioning for NXP's microcontrollers at the production stage. We recommend that all users to begin with MCUXpresso SEC tool for trials run and mass production use.

After downloading the tool, find the user guide under the ‘Help’ tab. Then follow the instructions for your board in the ‘Processor-specific Workflow’ chapter.

SEC

SEC Installation

2.5 Installing IoT Toolbox

NXP's IoT Toolbox is a versatile mobile application designed to support wireless connectivity demonstrations and testing. It provides an intuitive interface to interact with the NXP development platform. You will need this app to continue with the next sections of this Getting Started guide.

Get started by installing the interactive IoT Toolbox from one of the following platforms onto your smartphone:

IoT Toolbox Icon

3. Build and Run

The following steps guide you through the wireless localization demo application using MCUXpresso for VS Code extension for the Arm® Cortex®-M33 application. The MCUXpresso extension for VS Code installation and the SDK for the KW-Series can be found in the "Get Software" section of this Getting Started guide.

3.1 Updating the NBU Firmware

Before running any wireless demo, the narrow band unit (NBU) firmware must be updated according to its SDK version.

  1. Connect your KW47-LOC board to your PC using a USB Type‑C cable
  2. Open the LinkFlash tool that you installed in Section 2.1 (this tool comes included with the LinkServer component and the default path for this tool is "C:\nxp\LinkServer_XX.XX.XX\LinkFlash.exe")
  3. Verify that your board is recognized by the tool in the "Probe" field (if not, click "Refresh")
  4. Go to the "Erase" tab, then select the NBU memory region by clicking the checkbox
  5. Begin Updating the NBU Firmware

    Begin Updating the NBU Firmware
  6. Click the "Erase" button, then verify that the operation was successful by the message at the bottom of the window
  7. Verify Erase Step is Complete

    Verify Erase Step is Complete
  8. Go back to the "Program" tab, and then click the "Browse" button to look for your NBU firmware binary file
  9. Find NBU Firmware Binary File

    Find NBU Firmware Binary File
  10. Access the directory where you installed your SDK for Section 2.2, follow the path to the NBU file: "{your_SDK_path}\mcuxsdk\middleware\wireless\ble_controller\bin\kw47_nbu_ble_all_hosted.bin", then click "Open"
  11. Open NBU File from Directory

    Open NBU File from Directory
  12. In the "Address" field, type 0x48800000, then click "Program" (verify the correct completion of the operation)
  13. Select Program and Verify Step is Complete

    Select Program and Verify Step is Complete

3.2 Build and Flash Application using MCUXpresso for VS Code

  1. Find the activity bar in the left-hand bar and click it to open it, then once it's open, go to the explorer and open the "PROJECTS" tab
  2. Build and flash application using MCUXpresso IDE - step 1
  3. Then click Import Example from Repository Build and flash application using MCUXpresso IDE - step 2 The following tab will open in the editor screen
  4. Loading "Import Example from Repository" Window

    Loading
  5. Click the arrow button on the "Repository" tab to choose your previously downloaded SDK and the toolchain that matches the version
  6. Locate Toolchain for SDK Version

    Locate Toolchain for SDK Version
  7. Select the KW47-LOC board from the "Boards" drop-down menu
  8. Import Example for KW47-LOC

    Import Example for KW47-LOC
  9. Use the arrow button to expand the "Template" tab, select the"wireless_examples/bluetooth/bm/wireless_uart_bm" to use it as a template for the project, then click "Import" button
  10. Import Wireless UART Template

    Import Wireless UART Template
  11. Select the project and build it by either clicking the "build" icon in the shortcuts provided or by right-clicking to select the "Build" option
  12. Build Project

    Build Project
  13. The project should now build without any errors or warnings in the console
  14. Project Building in Terminal

    Project Building in Terminal
  15. Connect the board to your computer using the micro-USB to the J3 connector "MCU-LINK" port
  16. Download the application to your board by either clicking the "debug" icon or by right-clicking to select the "Debug" option
  17. Download Application to Board with "Debug"

    Download Application to Board with
  18. Open up the serial terminal to view the application’s output, then select the port associated with the MCULINK probe in your board's “MCULink-VCOM” window (set your terminal to baud rate or speed to "115200", 8 data bits, no parity and 1 stop bit, then connect to that port)
  19. Select Serial Port

    Select Serial Port
    Build and flash application using MCUXpresso IDE - step 12
  20. Run the application by pressing the “run” icon (see the output printed on the terminal)
  21. Run Application

    Run Application

    Start Wireless UART

    Start Wireless UART
  22. Press SW3 button to switch the Bluetooth® Low Energy (BLE) role to peripheral, then press SW2 to start BLE Advertising (you should see the messages printed on the terminal)
  23. Start BLE Advertising

    Start BLE Advertising
  24. Use the IoT Toolbox app to connect to the board by first selecting "Wireless UART" in the main menu
  25. Build and flash application using MCUXpresso IDE - step 18
  26. Select the board to connect (you should see a connection message displayed on the terminal)
  27. Build and flash application using MCUXpresso IDE - step 19

    Initialize Advertising

    Initialize Advertising
  28. Type any message into the app to see it appear in the serial terminal
  29. Build and flash application using MCUXpresso IDE - step 20

    Sending Message From Terminal to App

    Sending Message From Terminal to App
  30. Type a message into the terminal to see it appear in the app
  31. Build and flash application using MCUXpresso IDE - step 21

4. Create

4.1 Clone an Example Project from MCUXpresso for VS Code

The following steps will guide you through the manipulation of the general-purpose outputs (GPOs). In this example, the LED is set up to toggle every second.

  1. Following the instructions from the previous section, import the led_blinky SDK example
  2. Clone an Example Project from MCUXpresso for VS Code IDE - step -1
  3. Click on the “led_blinky_cm33_core0” project in the "Name" field of the "Import Example from Repository" window to build, compile and run the demo as described in the previous section
  4. Run Example

    Run Example
  5. You should now see the BLUE LED toggling each second
  6. You may now terminate the debug session

4.2 Use MCUXpresso Config Tools

  1. Open the pins tool by right‑clicking on your project, then select "Open with MCUXpresso Config Tools"
  2. Use MCUXpresso config tools - step 1
  3. Select the "Open an existing configuration" option, navigate to the path where you installed the SDK, then to mcuxsdk\examples\_boards\kw47loc\demo_apps\led_blinky\, select led_blinky.mex file and click on "Finish"
  4. The pins tool should now display the pin configuration for the blinky led project
  5. Pin Configuration

    Pin Configuration

4.3 Use the Pins Tools to Modify the LED Routed Pin

  1. In the Pins view, deselect the “Show dedicated pins” and “Show no routed pins” checkboxes so that only the routed pins are shown (indicated with a a green box next to the pin name and the functions selected for each routed pin are highlighted in green)
  2. Use the Pins Tools to Modify the LED Routed Pin

    Use the pins tools to modify the LED routed pin
  3. For the current configuration, PTC0 (LEB_BLUE) is routed as an output, so you will add the pin configuration to enable the GREEN LED
  4. Select “Show no routed pins” to see the other options, enable the GREEN LED by searching for PTC6, then select GPIO6 under the general-purpose input/output (GPIO) column (select "No" for any simultaneous routing message)
  5. Selecting "Show No Routed Pins"

    Selecting
  6. Next, configure the GPIO pin as an output and Logical 1 as GPIO initial state in the “Routing Details” window
  7. Configure Pins

    Configure Pins
  8. Now it’s time to implement these changes within the project by exporting the new updated pin_mux.c and pin_mux.h files that are generated by the Pins tool, so you will click on "Update Code" in the menu bar
  9. Export Updated Pins Tool Files to Implement Changes

    Use the pins tools to modify the LED routed pin - step 4
  10. The screen that pops up will show the files that are to be changed, so then you will click “OK” to overwrite the new files into your project
  11. Overwrite Project Files

    Use the pins tools to modify the LED routed pin - step 5
  12. Next, you will add some additional code to the example by opening led_blinky.c file and adding the following line to toggle the GREEN LED
  13. Toggling Green LED

    Use the pins tools to modify the LED routed pin - step 6
  14. Build and download the project per instruction in the previous section
  15. Run the application (you should now see the Green and Blue LED blinking alternately)
  16. Terminate the debug session

5. MCUXpresso Developer Experience

Check out each of the following sections to learn about the ecosystem provided for flexible protyping and development. The video below will introduce you to the FRDM platform, the full-featured EVK and the compatible shields for extended capabilities. In addition we will walk you through our Application Code Hub (ACH) portal where numerous application examples are provided through NXP's GitHub.

5.1 FRDM Platform, Full Feature EVK and Shields

For quick prototyping platforms, you have the option of low-cost FRDM platform or the full-featured EVK.

FRDM development boards come with standard form factor and headers, easy access to MCU I/Os, on-board MCU-Link debugger and a USB-C cable. Our full-featured evaluation kits include extended I/O and interface access, extendibility with Wi-Fi and additional MCU-Link features. There are also many compatible Click Boards and/or Arduino shields. For devices supported by an Open CMSIS Pack examples may be available on ACH. If not, many of them are easy to use via serial interface like inter-integrated circuit (I²C), serial peripheral interface (SPI), and universal asynchronous receiver/transmitter (UART), for which we provide drivers with examples in the MCUXpresso SDK.

5.2 Application Code Hub

The ACH further enhances our MCUXpresso Developer Experience by giving you an interactive dashboard to quickly locate software. Visit the ACH  today to start exploring or discover additional details and benefits of the new interactive Application Code Hub.

Software in the ACH is located in NXP’s GitHub repository  so it can be easily accessed and cloned from that location directly.

5.3 Demo Walkthrough

The following demo walks us through importing a project from ACH using a system based on the FRDM platform with a motor control shield and a low-cost LCD. Although your evaluation board may differ from this system, the following steps can be applied to all supported platforms.