[MCUXSDK] How to use GitHub SDK for KW4x, MCXW7x, MCXW2x

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[MCUXSDK] How to use GitHub SDK for KW4x, MCXW7x, MCXW2x

[MCUXSDK] How to use GitHub SDK for KW4x, MCXW7x, MCXW2x

Hello, 

Here are some helpful steps to follow when working with the NXP GitHub SDK.

Step1: Ensure the necessary toolchains are installed:

 https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/repo.html 

Additional notes and links:

 

Step 2: Download and Install the SDK:

  • GUI Method:

- Open VS Code, navigate to Import Repository and select the Remote option as shown below:

ovidiu_usturoi_0-1752492368597.png

- Upon successful import, the repository will show up in the Imported Repositories window:

ovidiu_usturoi_1-1752492786477.png

 

  •  Command Line Method:

- west commands:

# Initialize west with the manifest repository
west init -m https://github.com/nxp-mcuxpresso/mcuxsdk-manifests/ mcuxpresso-sdk

# Update the west projects
cd mcuxpresso-sdk
west update

More details:  https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/installation.html#get-mcuxpresso-sdk-repo 

- import the local repository to VS code: Open VS Code, navigate to Import Repository and select the Local option and Browse.. to your local repo:

ovidiu_usturoi_2-1752493440583.png

 

Step3: Run a Bluetooth LE Example

Step3a: Run a Bluetooth LE Example using MCUXpresso for VS code

- click Import Example from Repository from the QuickStart Panel

From the open dialog, select the MCUXpresso SDK, the Arm GNU toolchain, your target board, desired template, and application type, and proceed by clicking Import:

ovidiu_usturoi_3-1752493896113.png

 

For the application type, you’ll typically see two options: 

- Repository application 

- Freestanding application.

The key difference lies in where the project is imported. Repository applications are placed within the MCUXpresso SDK directory, while Freestanding applications can be imported to a custom location defined by the user.

- Next, VS Code will prompt you to verify trust for the imported files—click Yes.
Navigate to the PROJECTS view.

- Identify your project, right click and select the Prestine Build icon to begin building:

ovidiu_usturoi_5-1752495003978.png

 - details of the build are into the terminal window:

ovidiu_usturoi_6-1752495337012.png

- using Debug button will allow you to download and debug the software:

ovidiu_usturoi_7-1752495412398.png

 

(useful link: https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/run_a_demo_using_mcuxvsc.html )

Step3b: Run a Bluetooth LE Example using IAR Embedded Workbench for ARM:

- use the west list_projects command to list the supported example for boards and the corresponding toolchain:

Example to list Bluetooth examples: 

west list_project -p .\examples\wireless_examples\bluetooth\

or if you know the platform or/and the project you can use:

west list_project -b kw45b41zevk -p .\examples\wireless_examples\bluetooth\w_uart

ovidiu_usturoi_8-1752497079546.png

 west list_project -b frdmmcxw23 -p .\examples\wireless_examples\bluetooth\w_uart

ovidiu_usturoi_9-1752497125122.png

 

Once you've confirmed that the project is available for the IAR toolchain, run the appropriate command to build it:

west build -p always examples/wireless_examples/bluetooth/w_uart/freertos --toolchain iar --config debug -b kw45b41zevk

The build folder will contain the generated output:

ovidiu_usturoi_10-1752498250751.png

 

To work with IDE add  -t guiproject in the west command:

west build -p always examples/wireless_examples/bluetooth/w_uart/freertos --toolchain iar --config debug -b kw45b41zevk -t guiproject --pristine --build-dir=build/w_uart_freertos_kw45

 ovidiu_usturoi_11-1752498595529.png

 The result of the build will indicate the path to the *.eww/*.ewp:

ovidiu_usturoi_12-1752498651277.png

 

(additional details: https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/run_project.html )

 

Step4: Create a standalone example

With the freestanding project approach, only the application code is included in the export folder. Other essential files remain linked to the repository.

To generate a complete standalone project, the recommended method is using West by adding -t standalone_project option.

Example of command for kw45b41zevk, IAR toolchain:

west build -b kw45b41zevk ./examples/wireless_examples/bluetooth/w_uart/freertos -p always --toolchain iar --config debug -t standalone_project -d c:\work\w_uart_kw45

ovidiu_usturoi_13-1752499869665.png

 The result of the build will indicate the path to the *.eww/*.ewp:

ovidiu_usturoi_14-1752499888547.png

 

Example of command for kw45b41zevk, armgcc toolchain:

west build -b kw45b41zevk ./examples/wireless_examples/bluetooth/w_uart/freertos -p always --toolchain armgcc --config debug -t standalone_project -d c:\work\w_uart_KW45_armgcc

ovidiu_usturoi_0-1752500173467.png

The result of the build will indicate the path to the project that need to be imported in VsCode:

ovidiu_usturoi_1-1752500278581.png

Regards,

Ovidiu

 

No ratings
Version history
Last update:
‎07-14-2025 06:40 AM
Updated by: