MCUXpresso SDK Documentation

Getting Started with west Build Environment

Getting Started with west Build Environment#

These steps are intended for GitHub users working with Bluetooth Low Energy (BLE) demo applications from the GitHub MCUXpresso SDK repository.

Option 1: Using west#

Follow the steps in the order presented in Getting Started with MCUXpresso SDK Repository to install the west environment.

Option 2: Using Repository ZIP Download#

  1. Download the Repository ZIP

    • Navigate to https://mcuxpresso.nxp.com/

    • Search for your board (e.g., KW47-EVK, FRDM-MCXW71, KW45B41Z-EVK)

    • Click on your board from the search results

    • Click ARMGCC

    • Select the components you need (ensure Bluetooth Low Energy is selected)

    • Click BUILD SDK

    • Extract the downloaded ZIP file to your workspace

  2. Locate Bluetooth Examples Bluetooth examples

  3. Install west (Required for Building)

    Follow Getting Started with MCUXpresso SDK Repository to install west.

  4. Build from Repository ZIP

    Navigate to the SDK root directory and use west build commands as shown below.

Note: The Repository ZIP includes all dependencies pre-configured for your board.

Command Line to Generate/Build Projects

Example: w_uart on kw47evk

To build the w_uart example for the kw47evk board using the IAR toolchain and generate an IDE project, use the following command:

west build -b kw47evk boards/kw47evk/wireless_examples/bluetooth/w_uart/freertos/ --toolchain=iar -t guiproject -Dcore_id=cm33_core0 --pristine

Note: If using Repository ZIP download, navigate to the SDK root directory before running west commands.

Argument

Description

-b kw47evk

Specifies the board

--toolchain=iar

Specifies the toolchain (default is armgcc)

-t guiproject

Creates an IDE project

-Dcore_id=cm33_core0

Core ID, if available

--pristine

Cleans the build folder before building

Use the following steps in order to build and flash the BLE software demo applications on all toolchains presented in: