FRDM Training Hub

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

FRDM Training Hub

FRDM Training Hub


Restricted Beta Program

  • Comprehensive software and tools for seamless prototyping and rapid development
  • Scale your project with modular, quick-start FRDM and expansion boards
  • Leverage our application code hub or GoPoint to access 180+ code snippets and demos

  • Leverage FRDM Training Hub to learn from the experts
  • Not sure where to start ?

Discussions

Sort by:
MCX W series are secure, wireless MCUs designed to enable more compact, scalable and innovative designs for the next generation of smart and secure connected devices. The MCX W series, based on the Arm® Cortex®-M33, offers a unified range of pin-compatible multiprotocol wireless MCUs for Matter™, Thread®, Bluetooth® Low Energy and Zigbee®. MCX W enables interoperable and innovative smart home devices, building automation sensors and controls and smart energy products.   MCX W72 Hands on Training  FRDM-MCXW72: Hands-On pre-requisites This document is intended to guide you in the installation of the tools and let you know the material required for the FRDM-MCXW72 Hands On  FRDM-MCXW72: NBU and User Firmware Update Using ISP:   This hands-on describes how to update the code in NBU and the User firmware using the ISP. FRDM-MXCW72: Recognize NBU Incompatible Versions            The objective in this hands-on, is to learn how to recognize when the NBU firmware does not match with the SDK version. FRDM-MCXW72: Run Wireless UART IoT Toolbox Demo Goal of this lab is to show the SDK example implementing the wireless UART profile and we will move forward in making some meaningful modifications to the example itself with the goal to show where in the code the end user should enter the relevant application software for the application FRDM-MCXW72: Low Power Reference Desing SDK Demo          This hands-on describes how to run the Low Power Reference Design demo on FRDM-MCXW72. Two low-power reference design applications are provided in the SDK reference_design folder, these applications aim at providing: • A reference design application for low power/timing optimization on a Bluetooth Low Energy application. These can be used in first intent for porting a new application on low power. • A way for measuring the power consumption, wake-up time, and active time in various power modes. FRDM-MCXW72: Run Hello World SDK Demo           In this lab we will first import the MCUXpresso SDK for the MCX W72 Freedom board into MCUXpresso IDE and then we will build, flash and debug the hello world project to make sure the environment is set for the following Labs. FRDM-MCXW72: Run Blinky LED SDK Demo          In this lab we make some experience with the FRDM-MCXW72 board using the SDK project to implement a simple LED blinking. Once we will get familiar with the example project, we will integrate simple modifications FRDM-MCXW72 Channel Sounding board to board This hands-on guide offers an overview of the features and procedures for deploying and operating Bluetooth LE localization applications with Channel Sounding functionality on the NXP FRDM-MCXW72 hardware platform. FRDM-MCXW72 Channel Sounding FRDM to Phone Goal of this lab is to show the SDK example implementing the Bluetooth LE Ranging profile, how to flash it and run it, as well as looking into the code to extract meaningful information for applications that use ranging FRDM-MCXW72 Getting Started with Matter: This document is intended to guide you in the installation of the necessary tools and repository for start running Matter examples and development. FRDM-MCXW72 Getting Started with Zephyr: This document is intended to guide you in the installation of the necessary tools and repository for start running Zephyr examples and development. FRDM-MCXW72 Open NBU programming: Unlike MCXW 71 MCU, MCXW 72 supports an Open NBU. This means that NBU firmware source code is exposed to user. On MCXW 71 MCU, NBU firmware is NXP proprietary; it is not user customizable.   MCX W23 Hands on Training  FRDM-MCXW23: LED Blinky In this lab we make some experience with the FRDM-MCXW23 board using the SDK project to implement a simple LED blinking. Once we will get familiar with the example project, we will integrate simple modifications. FRDM-MCXW23: Wireless UART IoT ToolBox the Goal of this lab is to show the SDK example implementing the wireless UART profile and we will move forward in making some meaningful modifications to the example itself with the goal to show where in the code the end user should enter the relevant application software for the application. FRDM-MCXW23: Hello World In this lab we will first import the MCUXpresso for Visual Studio Code SDK for the MCX W23 Freedom board into the MCUXpresso extension for Visual Studio Code and then we will build, flash and debug the hello world project to make sure the environment is set for the following Labs. FRDM-MCCXW23: Low Power Reference Design This hands-on describes how to run the Low Power Reference Design demo on FRDM-MCXW23. Two low-power reference design applications are provided in the reference design folder for the MCXW23: Low power peripheral application demonstrating the low power feature on an advertiser peripheral Bluetooth LE device. Low power central application demonstrating the low power feature on a scanner central Bluetooth LE device. Wireless Connectivity Trainings Bluetooth Low Energy  Introduction to Thread Network
View full article
This document is intended to guide you in the installation of the tools and let you know the material required for the FRDM-MCXW72 Channel Sounding Hands On 
View full article
Goal of this lab is to show the SDK example implementing the wireless UART profile and we will move forward in making some meaningful modifications to the example itself with the goal to show where in the code the end user should enter the relevant application software for the application. Run Wireless UART IoT Toolbox Demo
View full article
Unlike MCXW 71 MCU, MCXW 72 supports an Open NBU. This means that NBU firmware source code is exposed to user. On MCXW 71 MCU, NBU firmware is NXP proprietary; it is not user customizable.
View full article
This document is intended to guide you in the installation of the necessary tools and repository for start running Zephyr examples and development. Zephyr is a lightweight, open-source real-time operating system (RTOS) designed specifically for microcontrollers (MCUs) and other resource-constrained embedded devices. Unlike general-purpose operating systems, Zephyr is built to run on systems with limited memory, low power consumption, and strict real-time requirements. It provides the core software foundation that allows an MCU to run multiple tasks reliably, respond to events on time, and interact with hardware in a structured way.
View full article
This document is intended to guide you in the installation of the necessary tools and repository for start running matter examples and development. Matter (previously known as Project CHIP) is a single, unified, application-layer connectivity standard designed to enable developers to connect and build reliable, secure IoT ecosystems and increase compatibility among Smart Home and Building devices. Backed by major brands and developed through collaboration within the Connectivity Standards Alliance (previously known as the Zigbee Alliance), Matter is an open-source royalty-free connectivity standard built with market-proven technologies using Internet Protocol (IP) and compatible with Thread and Wi-Fi network transports. Building solutions and leading standards efforts, NXP provides scalable, flexible and secure platforms for the variety of use cases Matter addresses – from end nodes to gateways – so device manufacturers can focus on their product innovation. NXP’s Matter solutions go beyond just the connectivity with comprehensive capabilities for the compute and security requirements for IoT devices.
View full article
Goal of this lab is to show the SDK example implementing the Bluetooth LE Ranging profile, how to flash it and run it, as well as looking into the code to extract meaningful information for applications that use ranging Guide
View full article
In this lab we make some experience with the FRDM-MCXW72 board using the SDK project to implement a simple LED blinking. Once we will get familiar with the example project, we will integrate simple modifications
View full article
In this lab we will first import the MCUXpresso SDK for the MCX W72 Freedom board into MCUXpresso IDE and then we will build, flash and debug the hello world project to make sure the environment is set for the following Labs  
View full article
This hands-on describes how to run the Low Power Reference Design demo on FRDM-MCXW72. Two low-power reference design applications are provided in the reference_design folder: Low power peripheral application, demonstrating the low power feature on an advertiser peripheral Bluetooth LE device. Low power central application, demonstrating the low power feature on a scanner central Bluetooth LE device. These applications aim at providing: A reference design application for low power/timing optimization on a Bluetooth Low Energy application. These can be used in first intent for porting a new application on low power. A way for measuring the power consumption, wake-up time, and active time in various power modes. The default low-power mode used in different modes are shown as follows: Default power mode App core Radio core Advertise mode Power Down mode Deep sleep mode Connected mode Deep Sleep mode Deep Sleep mode Scanning mode Deep Sleep mode WFI or Deep Sleep mode For complete documentation please visit: reference_design — MCUXpresso SDK Documentation
View full article
The MCX W72 family features a 96 MHz Arm® Cortex®-M33 core coupled with a multiprotocol radio subsystem also called Narrow Band Unit (NBU) supporting Matter, Thread, Zigbee and Bluetooth LE. The independent radio subsystem, with a dedicated core and memory, offloads the main CPU, preserving it for the primary application and allowing firmware updates to support future wireless standards. On MCXW72, only boot ROM has access to the NBU flash. The ROM bootloader provides an in-system programming (ISP) utility that operates over a serial connection on the microcontroller units (MCUs) The objective in this hands-on, is to learn how to recognize when the NBU firmware does not match with the SDK version.
View full article
The MCX W72 family features a 96 MHz Arm® Cortex®-M33 core coupled with a multiprotocol radio subsystem also called Narrow Band Unit (NBU) supporting Matter, Thread, Zigbee and Bluetooth LE. The independent radio subsystem, with a dedicated core and memory, offloads the main CPU, preserving it for the primary application and allowing firmware updates to support future wireless standards.   The ROM bootloader provides an in-system programming (ISP) utility that operates over a serial connection on the microcontroller units (MCUs)  This hands-on describes how to update the code in NBU and the User firmware using the ISP.  
View full article
Introduction This document is intended to guide you in the installation of the tools and let you know the material required for the FRDM-MCXW72 Hands On.  Required Materials The material and the software requirements will depend on the hand on, but the next is what it is required in most of them. Hardware Requirements FRDM-MCXW72 Board Personal Computer Type C USB Cable Software Requirements IDE: Visual Studio Code 1.107.1 or later SDK: v25.12.00 MCUXpresso extension for VS Code version v25.12.48 BLHost Tool or LinkFlash tool (Linkflash is included with LinkServer installation) Windows OS (It was used Windows 11 for this hands-on) NXP IoT Toolbox (For an Android or iOS device) Serial Terminal program, like PuTTY or Tera Term Environment Setup Note: In order to make downloads in NXP website, it is necessary to have an account. Register and log-in for moving forward. MCUXpresso for Visual Studio Code                                                                                                                                                                         MCUXpresso for Visual Studio Code (VS Code) provides an optimized embedded developer experience for code editing and development. The extension enables NXP developers to use one of the most popular embedded editor tools and provides an easy and fast way to create, build and debug applications based on MCUXpresso SDK or Zephyr projects.   Install it following the next steps: Download Visual Studio Code from Microsoft Store or visual studio code web page Download Visual Studio Code - Mac, Linux, Windows Access to vscode for MCUX wiki and download MCUXpresso Installer  Dependency Installation · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub Run MCUXpresso Installer and for MCXW72 Hands On install at least MCUXpresso SDK Developer Matter Developer Arm GNU Toolchain Standalone Toolchain Add ons Linkserver PEmicro Installing the FRDM-MCXW72 SDK V25.12.00   Each MCU has its own SDK that includes driver, examples, middleware, docs and other components. To get and build the demo, let’s install the SDK into VS Code. Install the NXP’s GitHub SDK: Once MCUXpresso for Visual Studio Code is installed, open VS Code. Go to MCUXpresso for VS Code extension that is on the tools column at the left.    Look for INSTALLED REPOSITORIES option and press ‘+’ (Detail steps are described in wiki page. Working with MCUXpresso SDK · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub).                                               Search for the remote option of the Import Repository window. Select the MCUXpresso SDK in the repository option to download the GitHub SDK, then in the Revision tab you can select either the “main” revision (which corresponds to the latest version available) or to select an specific version (we’ll be using version v25.12.00 for these series of labs), optionally you can change the repository name and location.     Finally click on the “Import” button. Blhost Installation The blhost application is used on a host computer to issue commands to an NXP platform running an implementation of the MCU bootloader. The blhost application with the MCU bootloader, allows a user to program a firmware application onto the MCU device without a programming tool. Please go an download the tool in the next path and make sure to placed in a known location. BLHost Download page.
View full article
Discover the NXP FRDM Lab at Embedded World 2026 Hands‑on training and real demos across Edge AI, Zephyr, motor control, security, and GUIs Learn live—or later with self‑guided FRDM Lab content
View full article
FRDM Training and Resources This article provide a guide of available resources for FRDM Development boards to help you to find and use available resources (Boards, Guides, Hands-On Trainings and more)
View full article
Whether you're a student, hobbyist, or professional developer, the FRDM Development Platform by NXP is your gateway to building powerful embedded applications—quickly and affordably. In this beginner-friendly guide, you’ll learn: What FRDM boards are and how they compare to other NXP evaluation kits Who the platform is designed for How to buy and get started with your first board What’s new in the latest FRDM series featuring MCX microcontrollers and i.MX processors How the FRDM ecosystem supports your development with modular hardware, software tools, and ready-to-use code examples
View full article
FRDM-IMX93 development boards are the first FRDM development board with i.MX MPUs and include Wi-Fi and Bluetooth modules and support for Debian, Yocto and GoPoint which will help you to develop your industrial and IoT applications quickly with NXP's developer experience.   FRDM-IMX93 Applications Low-cost development board usage, Bi-annual BSP release for Debian Yearly BSP release for Yocto.   Get to know FRDM-IMX 93 Development Board       Specifications 2x Arm Cortex®-A55 + Cortex®-M33 Wi-Fi 6 + BT + 802.15.4 Module on-board, IW612 2x GB Ethernet (1xETER, 1xTSN) MIPI-CSI/DSI, HDMI M.2 Connector LPDDR4X 16-bit 2GB eMMC 5.1, 32GB MicroSD 3.0 card slot 3x USB 2.0 Type-C connector (one for Debug, one PD only) + 1x USB 2.0 Type-A RTC, Buttons and LED     Feature FRDM-IMX93 eMMC 32GB DRAM Micron 2GB PMIC PCA9451A WiFi Module u-blox MAYA-W276 on-board USB TYPE C Type-C+Type-A ENET 2xGbE M.2 (Key E) SDIO WiFi / BT Y (rework needed) HDMI IT6263/Y MIPI DSI Panel 22 Pins FPC HDR LVDS Panel N MIPI CSI camera 22 Pins FPC HDR 2x20 Expansion Interface Y CAN BUS Y MicroSD Y UART Y Audio  MQS Remote Debug N NXP Connector (CAN,ADC, I2C) Y Power Connector Type-C PCB layers 10 Base Board DIM 6.5x10.5cm   NXP Devices On-Board PMIC PCA9451A USB PD TCPC PHY IC PTN5110 High-Voltage USB PD Power Switch NX20P5090UK IIC  Extends  GPIO PCAL6524/PCAL6408A CAN Transceiver TJA1051T/3 USB Sink & Source combo power switch  NX20P3483UK USB Type-C CC and SBU Protection IC  NX20P0407 Real-time clock/calendar PCF2131 Wi-Fi, BT, 802.15.4 Tri-Radio IW612 (in u-blox Module)   Expansion Boards   RPI-CAM-MIPI: IAS camera to 22 Pins FPC camera adapter TM050RDH03-41: LCD display module 5” TFT 800X480, RGB, 120.7 mm x75.8 mm7inch Waveshare 7'' DSI LCD: (English language link) 7inch Capacitive Touch, 1024×600 MX93AUD-HAT: Audio expansion board with multiple features ​8MIC-RPI-MX8: 8-microphone array proto board for voice enablement   FRDM-IMX93 web page Getting Started Guide Out of the Box Get Software Build and Run Developer Experience   Projects and Tutorials Debug Terminal in Linux & Windows Cortex-M33 Enablement Deploy ML models on NPU Graphics Security and Integrity Fast Boot Trainings   FRDM-IMX93 Web Page Training. Recorded video trainings  Generic FRDM-IMX93 SW Release Package FRDM-IMX93 Board Flashing Guide How to use J-link on FRDM-IMX93 Software and Enablement GoPoint Demo On FRDM-IMX93 Connectivity FRDM-IMX93 Connectivity training FRDM-IMX93 Connectivity WiFi Basic Hands-on FRDM-IMX93 Bluetooth A2DP Source and Sink Profile Demo FRDM-IMX93 Connectivity OpenThread Hands-on FRDM-IMX93 Connectivity WiFi Bluetooth and OT COEX ML / IA eIQ Toolkit Import NVIDIA TAO model and run on FRDM i.MX93 and i.MX93EVK   Documentation  −FRDM-IMX93 Quick Start Guide −FRDM-IMX93 Board User Manual -FRDM-IMX93 Software User Guide   Useful Links i.MX Yocto Project User’s Guide​ i.MX Linux User’s Guide i.MX Linux Reference Manual​ i.MX Porting Guide i.MX Debian Linux SDK User Guide Run Zephyr on A55 with FRDM-IMX93 and FRDM-IMX91 i.MX 93 Memory Compatibility Guide
View full article
Hands On This hands-on describes how to run the Low Power Reference Design demo on FRDM-MCXW23. Two low-power reference design applications are provided in the reference design folder for the MCXW23: Low power peripheral application demonstrating the low power feature on an advertiser peripheral Bluetooth LE device. Low power central application demonstrating the low power feature on a scanner central Bluetooth LE device. These applications aim at providing: A reference design application for low power/timing optimization on a Bluetooth Low Energy application. These can be used in first intent for porting a new application on low power. A way for measuring the power consumption, wake-up time, and active time in various power modes. The default low-power mode used in different modes are shown as follows: CM33 (core main power domain) and RADIO (core radio power domain) could be active in of the state as follows: – Sleep mode – Deep-sleep mode – Power-down mode – Deep-power down mode CM33 is woken up (core wake-up power domain) and performs system initialization and some pre-processing RADIO woke-up and transceiver are ready to operate. If the software allows, the CM33 can enter in Inactive mode: The transceiver is performing one or more RX/TX sequences CM33 is processing the received or transmitted packets The transceiver is put back in Sleep mode CM33 enters low-power (Deep-sleep mode)   Running the Health care IoT reference design application Once the MCXW23 device is programmed with the low-power reference design demo project, and after a power cycle, it starts to advertise every 1000 mS as soon as the hardware and software initializations are completed. When advertising stops the main domain and radio domain will go to Deep-sleep mode. The MCU stays in this mode until the wake-up from one of the wake up sources. By default, the wake up sources are the wake up button, timer IRQ watchdog IRQ. At wake-up, the device starts to advertise immediately, just like waking up from a Power-On-Reset. Running the low-power central reference design application   The application behavior is as follows: At POR, start scanning immediately, scanning stops on connection establishment. It establishes automatically a connection with a low-power reference design application (lp refdes app) or a temperature sensor by checking the temperature sensor service's UUID in the advertising message and retrieves the temperature value. Note that Low Power Reference Design needs to connect to the peripheral application having an RSSI value lower than the threshold, to accomplish this try to keep the boards close to each other at the beginning. On disconnect, the Application core and radio core go to Deep Sleep mode with full RAM retention. If gAppRestartScanAfterConnect is set to 1, the radio core restarts the scan activity. Application core still goes to Deep Sleep mode between messages from CM3. SW2 button has no effect. Shell over LPUART peripheral outputs scanning, connection information, and temperature value.   Hardware Requirements   FRDM-MCX23 Board x 2 Personal Computer Type C USB Cable x 2 Ammeter to measure current (Optional)   Software Requirements   IDE: Visual Studio Code 1.91.1 SDK: SDK v2.16.100 for FRDM-MCXW71 SPSDK Tool Windows OS (It was used Windows 10 for this hands-on) NXP IoT Toolbox (For Android or iOS device) Hardware changes to measure current In order to measure the current consumption in FRDM-MCX23 we have the following options: Measure current in JP4. This will give you the overall consumption of the board, but this will not require hardware modifications. Measure current in JP1. This is the current for peripheral circuits in the board. For this option JP1 must be populated and SH200 must be cut. Measure current in JP2. This is the MCU current consumption. For this option JP2 must be populated and SH201 must be cut.     For this hand on we will measure current in JP2 to get the MCU consumptions in low power.   Note: In order to make downloads in NXP website, it is necessary to have an account. Please, register and log-in for moving forward. MCUXpresso for Visual Studio Code MCUXpresso for Visual Studio Code (VS Code) provides an optimized embedded developer experience for code editing and development. The extension enables NXP developers to use one of the most popular embedded editor tools and provides an easy and fast way to create, build and debug applications based on MCUXpresso SDK or Zephyr projects.               Install it following the next steps: Download Visual Studio Code from Microsoft Store or visual studio code web page Download Visual Studio Code - Mac, Linux, Windows Access to vscode for MCUX wiki and download MCUXpresso Installer  Dependency Installation · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub Run MCUXpresso Installer and for this Hands On install at least MCUXpresso SDK Developer Arm GNU Toolchain PEmicro   Installing the FRDM-MCXW23 SDK v 25.06.00. Each MCU has its own SDK that includes driver, examples, middleware, docs and other components. To get and build the demo, let’s install the SDK into VS Code:        Once MCUXpresso for Visual Studio Code is installed open VS Code. Go to MCUXpresso for VS Code extension that is on the tools column at the left. Look for INSTALLED REPOSITORIES option and press ‘+’. Detail steps are described in                                                    Use the steps for import a remote Git repository wiki page. Working with MCUXpresso SDK · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub Search for Revision v25.06.00 or newer and complete installation.   Installing SPSDK. The SPSDK is a unified, reliable, and easy to use Python SDK library working across the NXP MCU portfolio providing a strong foundation from quick customer prototyping up to production deployment. The library allows the user to connect and communicate with the device, configure the device, prepare, download, and upload data including security operations. Follow next steps for installation: Create python virtual environment. Open a Command Prompt window Write  python -m venv <name>​ Active the virtual environment: cd <name> cd Scripts activate Make sure that your prompt starts with the selected “<name>”                                                                         Install SPSDK from Github into your Python virtual environment. pip install -U spsdk Wait until the installation is completed. From now on you can use the virtual environment when it is needed, just open cmd open the Scripts or bin folder and write activate as in previous steps. Make a Full flash erase using Blhost SPSDK. Open SPSDK virtual environment Open a command prompt Change directory to open Scripts folder under SPSDK virtual environment Write activate Make sure your prompt starts with virtual environment name                                                              Move command prompt to Virtual environment folder                                                                                          Open Device Manager to check the MCU-Link COM                                                                                                        In your board set the jumpers JP13 and JP14 to connect pin 2 to 3.                                                                          Plug your board to your computers USB port, then press SW3, while keep pressing SW3 press Reset button (SW1) for a second, then make sure to release SW1 first, then release SW5.                                                                                                                                                   Use Blhost command to make sure board communication is set up correctly                             a. >blhost -p comxx get-property 1 ​   7. Use this Blhost command to erase your on-board flash                                                               b. >blhost -p comxx flash-erase-all ​   8. Restore JP13 and JP14 to connect to pin 1 to 2   Section 1. Run Low Power Reference Design Open VS code Go to MCUXpresso for VS Code extension that is on the tools column at the left. Go to PROJECTS section and select “Import Example Application from and Installed Repository”                                                                                                                                                                                               Select “frdmmcxw23_health_care_iot_peripheral_bm” project as in the next image and create the project                                                                                                                                          Repeat previous step for “frdmmcxw23_health_care_iot_central” Go back to Projects view and build the projects clicking “Build Selected” icon                                         Connect USB cable to MCU-LINK (J10) connector on both boards Open a Serial terminal on PC for the serial device with these settings on the two boards: - 115200 baud rate - No parity - One stop bit - No flow control To identify the appropriate COM, open the Device Manager and look for MCU-Link VCom Port                                                                                                                                                                                                        9. Select “frdmmcxw23_health_car_iot_central” and click on debug to flash the code into one board   Click on “Continue” button or press “F5” key on your keyboard to continue running the downloaded program on device. 11. Click on “Stop” button or press “Shift + F5” to terminate the debug session.        12. Open a Serial terminal on PC for the serial device with these settings on the two boards: - 460800 baud rate - No parity - One stop bit - No flow control To identify the appropriate COM, open the Device Manager and look for MCU-Link VCom Port 13. Repeat the steps from 9 to 11 with the "frdmmcxw23_health_care_iot_peripheral_bm" project into the second board Clean serial terminals Click SW1 button to reset the central board. Click SW5 button to start the Health care IoT peripheral demo. In the terminal you will see that the boards are communicating each other each second after the boards stablish connection. Central Device Peripheral Device       As expected the Peripheral device connects to the central device send the temp information. The peripheral device will keep advertising each second to report temperature and battery status, after this time it goes to Deep sleep mode. The next step is to measure the current, connect the ammeter on JP2 in the peripheral device. Figure 1 measuring an advertising interval Figure 2 Board after pressing sw5 Figure 3 Board init services and start advertising until central scan connection You can have more information about the Reference application Health Care IoT Central/Peripheral and how to modify the project to change adv interval or disable services on the application note: AN14659 MCX W23 Bluetooth Low Energy Power Consumption Analysis  
View full article
Hands On In this lab we will first import the MCUXpresso for Visual Studio Code SDK for the MCX W23 Freedom board into the MCUXpresso extension for Visual Studio Code and then we will build, flash and debug the hello world project to make sure the environment is set for the following Labs. Hardware Requirements Personal Computer FRDM-MCXW23 Board Type C USB Cable Software Requirements IDE: Visual Studio Code 1.91.1 Extension: MCUXpresso for VS Code v25.06.97 or newer SDK: SDK next gen v25.06.00 or newer Windows OS (Windows 11 was used for this hands-on) Serial Terminal program, like PuTTY or Tera Term Note: In order to make downloads in NXP website, it is necessary to have an account. Please, register and log-in for moving forward. MCUXpresso for Visual Studio Code MCUXpresso for Visual Studio Code (VS Code) provides an optimized embedded developer experience for code editing and development. The extension enables NXP developers to use one of the most popular embedded editor tools and provides an easy and fast way to create, build and debug applications based on MCUXpresso SDK or Zephyr projects.               Install it following the next steps: Download Visual Studio Code from Microsoft Store or visual studio code web page Download Visual Studio Code - Mac, Linux, Windows Access to vscode for MCUX wiki and download MCUXpresso Installer  Dependency Installation · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub Run MCUXpresso Installer and for this Hands On install at least MCUXpresso SDK Developer Arm GNU Toolchain PEmicro   Installing the FRDM-MCXW23 SDK v 25.06.00. Each MCU has its own SDK that includes driver, examples, middleware, docs and other components. To get and build the demo, let’s install the SDK into VS Code:        Once MCUXpresso for Visual Studio Code is installed open VS Code. Go to MCUXpresso for VS Code extension that is on the tools column at the left. Look for INSTALLED REPOSITORIES option and press ‘+’. Detail steps are described in                                                                                                            Use the steps for import a remote Git repository wiki page. Working with MCUXpresso SDK · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub Search for Revision v25.06.00 or newer and complete installation. Lab Section . Run Hello World Demo Open VSCode Go to MCUXpresso for VS Code extension that is on the tools column at the left.     Go to PROJECTS section and select “Import Example Application from and Installed Repository”                                                                                                                                                                        Select “frdmmcxw23_hello_world” project as freestanding as shown in the next image and create the project                                                                                                                                                     Now you should have the “frdmmcxw23_hello_world” in your workspace. Before moving to the building and testing phase of the project, we want to do a small modification, go to line 39 of the hello_world.c file and change the line PRINTF("hello world.\r\n"); to PRINTF("hello world, this is MCXW23 from NXP Semiconductors.\r\n"); 7.Build the projects clicking “Build Selected” icon to make sure the build process succeeds with zero errors and warnings or you can right click on the project’s name and press “Build Project button”.   The build project process starts, follow its progress in the Console tab located in the bottom center of the window. If the build process will successfully end you will see something like “build finished successfully” in the Terminal window:   To start the debug session, connect the FRDM-MCXW23 board debugger port to your host PC, using the USB A to USB C cable provided with the FRDM board as per the picture below on MCU-Link USB port and then the other end to a free USB port on the host PC.                                                                                   Open a Serial terminal on PC for the serial device with these settings on the two boards: - 115200 baud rate - No parity - One stop bit - No flow control To identify the appropriate COM, open the Device Manager and look for MCU-Link VCom Port   To start debugging, simply click on Debug icon or you can right click on projects name and press “Debug” Button.   All is set to start debugging the project, click on “Continue” button or press “F5” key on your keyboard to continue running the downloaded program on device.   The execution of the example starts and “hello world, this is MCXW23 from NXP Semiconductors.” is printed in the Terminal window as per the below picture:   Enter any character + <enter> to see the examples echoes every character that is entered through the terminal. Click on the Stop button (red square) to end the debug session. Congratulations you have successfully completed the hello world lab.
View full article
Hands On  Goal of this lab is to show the SDK example implementing the wireless UART profile and we will move forward in making some meaningful modifications to the example itself with the goal to show where in the code the end user should enter the relevant application software for the application.    Hardware Requirements  Personal Computer  FRDM-MCXW23 Board   Type C USB Cable    Smartphone    Software Requirements  IDE: Visual Studio Code 1.91.1  SDK: SDK v2.16.100 for FRDM-MCXW23  SPSDK Tool  Windows OS (It was used Windows 10 for this hands-on)  NXP IoT Toolbox (For Android or iOS device)  Terminal program, like PuTTY or Tera Term  Note:  In order to make downloads in NXP website, it is necessary to have an account. Please, register and log-in for moving forward.  MCUXpresso for Visual Studio Code  MCUXpresso for Visual Studio Code (VS Code) provides an optimized embedded developer experience for code editing and development. The extension enables NXP developers to use one of the most popular embedded editor tools and provides an easy and fast way to create, build and debug applications based on MCUXpresso SDK or Zephyr projects.   Install it following the next steps:  Download Visual Studio Code from Microsoft Store or visual studio code web page Download Visual Studio Code - Mac, Linux, Windows  Access to vscode for MCUX wiki and download MCUXpresso Installer  Dependency Installation · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub  Run MCUXpresso Installer and for this Hands On install at least  MCUXpresso SDK Developer  Arm GNU Toolchain   PEmicro    Installing the FRDM-MCXW23 SDK v25.06.00.  Each MCU has its own SDK that includes driver, examples, middleware, docs and other components. To get and build the demo, let’s install the SDK into VS Code:   Once MCUXpresso for Visual Studio Code is installed open VS Code.  Go to MCUXpresso for VS Code extension that is on the tools column at the left.  Look for INSTALLED REPOSITORIES option and press ‘+’. Detail steps are described in                                     -Use the steps for import a remote Git repository                                   -wiki page.               4.Search for FRDM-MCXW23 v 25.06.00 SDK and complete installation.  Section 1. Wireless of simply less wires?  Open VS code   Go to MCUXpresso for VS Code extension that is on the tools column at the left.    Go to PROJECTS section and select “Import Example Application from and Installed Repository”            4.Select “frdmmcxw23_wireless_uart_bm” project as in the next image and create the project    5. Now you should have the “frdmmcxw23_wireless_uart_bm” in your workspace. Build the projects clicking “Build Selected” icon to make sure the build process succeeds with zero errors and warnings.      6. To make sure your board becomes “unique” we need to change the name of it as it appears in the BLE scanning process. To do this we need to modify a line of code in the app_config.c . In some SDK this file is only referenced from the SDK project. To avoid problems with the future projects we need to have selected the Freestanding option when importing the project.   In project explorer go to your project “frdmmcxw23_wireless_uart_bm” and open this explorer to find the “app_config.c” file.    Once opened, browse to line 76 and make the following modification  From  .aData = (uint8_t*)"NXP_WU" to  .aData = (uint8_t*) "Custom_string"   IMPORTANT: Custom_string can be any string that is supposed to be unique in the class (your initials, name of your dog, anything meaningful to you only) Please note the string needs to be 7 characters maximum to avoid any other modifications in the code. In this Lab guide we will modify the string using “NXP_DT”  We will then do the following modification  .aData = (uint8_t*)"NXP_DT" 7. Verify that the modification succeeded by Building the project again and making sure you don’t get any error or warning.   8. Let us, at this point, get familiar with the board and the switches that we need to use to have the application running in the correct way.  The application makes use of two switches, the ROLESW-SW5 (Role Switch) and the SCANSW-SW2 (scan Switch), the establishment of a BLE connection is shown by the CONNLED (connection LED), please refer to the picture below to see where the switches and the LEDs are located on the FRDM-MCXW71 board.    9. Open a Serial terminal on PC for the serial device with these settings on the two boards:   115200 baud rate   No parity   One stop bit  No flow control   To identify the appropriate COM, open the Device Manager and look for MCU-Link VCom Port    10. We are now ready to start evaluating the example, Select “frdmmcxw23_wireless_uart_bm” and click on debug to flash the code into one board    11.Click on “Continue” button or press “F5” key on your keyboard to continue running the downloaded program on device.     You will immediately start noticing two things, the RGB LED (showing white color) and the BLUE LED on the board will start blinking at the same rate and you will see the “Wireless UART Starting as GAP Central” on the terminal.    12. The microcontroller is acting at this stage with the role that your smartphone is supposed to take in the example, to change the role click now the ROLESW=SW4 on the board to change the role to peripheral, the “switched role to GAP Peripheral” message on the terminal should be shown       13. It is now time to make the board visible to a Bluetooth scan, to do this press once the SCANSW=SW2 switch, you should notice now the RBG LED on the board stops blinking and only the CONNLED will continue. The “Advertising…” message should be now prompted on the terminal     14. It is time now to access the IoT Toolbox app on your smartphone and select Wireless UART    15. Once you click on “Wireless_UART” you should see a list of Wireless UART compatible devices advertising in that moment in the region around you (only the one under use at this stage in the picture below identified by NXP_DT)    16. If everything went correctly the BLE communication is in place, and you will observe the following three conditions: A. The BLUE LED on the board becomes solid blue  B.The terminal will report the communication is in place by prompting “Connected to device 0 as peripheral”    C. The screen on your app will look like the following, please note the DICONNECT button at the top right of the screens that shows your smartphone is connected to the FRDM board     17. Type any character(s) into the text box on the IoT toolbox and press the Send button to wirelessly transmit character between the App and the MCXW71 device. Every character you will send from the app will be prompted on the console. At this point we have verified the basic way of working of the Wireless UART app that comes as part of the device’ s SDK.   Congratulations you have reached the end of the first part of the lab, you can now close the IoT Toolbox app on your smartphone and click on Terminate to stop debugging the application on the MCXW23 board.  18. It is now time to make some modifications on out of the box example to add additional interactions between the app and the board at hardware level, the goal is to become more familiar with the software stack in use and the available hardware resources.   As first step, we need to identify the right file where we will incorporate the modifications, the file we need to work on is called wireless_uart.c, same as with app_config.c this file is in the SDK folder so to avoid modifications on the SDK source we have to had imported the example as a freestanding application as show in the first parb of the lab. In window explorer go to your project “frdmmcxw23_wireless_uart_bm” and open the explorer to find the “wireless_uart.c” & “wireless_uart.h” files.      19. In the wireless_uart.c file we need to add the declarations, variables and includes to configure the LEDs commands. Let us start with the variables declarations, somewhere around line 267 (doesn’t really matter the exact number of the line you add the declaration on) add the following lines:  uint8_t command_uart; uint8_t command_lenght; 20. We now need a more complex function to be declared to handle the LED’s behavior as well as the initialization of the ports and pins used, we will command the RGB LED located on the FRDM-MCXW23 board. In the Public functions section of the file (around line 271) place the following commandLed() function (use the copy_and_paste.txt file provided for this lab to avoid any formatting issues)    static void command_led(void) {     if( (command_uart >= '0' && command_uart <= '4') && (command_lenght <= 2))     {         switch(command_uart)         {             case '0':                     GPIO_PortClear(GPIO, 0U, 1<<0); //Turn on Green LED                     GPIO_PortClear(GPIO, 0U, 1<<1); //Turn on Red LED                     GPIO_PortClear(GPIO, 0U, 1<<4); //Turn on Blue LED                 break;             case '1':                     GPIO_PortSet(GPIO, 0U, 1<<0); //Turn off Green LED                     GPIO_PortClear(GPIO, 0U, 1<<1); //Turn on Red LED                     GPIO_PortSet(GPIO, 0U, 1<<4); //Turn off Blue LED                 break;             case '2':                     GPIO_PortClear(GPIO, 0U, 1<<0); //Turn on Green LED                     GPIO_PortSet(GPIO, 0U, 1<<1); //Turn off Red LED                     GPIO_PortSet(GPIO, 0U, 1<<4); //Turn off Blue LED                 break;             case '3':                     GPIO_PortSet(GPIO, 0U, 1<<0); //Turn off Green LED                     GPIO_PortSet(GPIO, 0U, 1<<1); //Turn off Red LED                     GPIO_PortClear(GPIO, 0U, 1<<4); //Turn on Blue LED                 break;             case '4':                     GPIO_PortSet(GPIO, 0U, 1<<0); //Turn off Green LED                     GPIO_PortSet(GPIO, 0U, 1<<1); //Turn off Red LED                     GPIO_PortSet(GPIO, 0U, 1<<4); //Turn off Blue LED                 break;             default:             break;         }     } } 21. To make use of the instructions that manipulate the GPIOs in the wireless_uart.c file we need to make sure they are reachable from the file itself, we ensure this with the following include statement which needs to be added in the include file section of the wireless_uart.c file (around line 30)  #include "fsl_gpio.h" 22. It is now necessary to call the above defined commandLed function in the whole BLE software flow, and, in particular it needs to be called in the BleApp_ReceivedUartStream function defined in the wireless_uart.c files somewhere around line 1440. Include then the commandLed() function just after the following line(s) of code (highlighted in yellow the function to be added and the position)   #if (defined(SERIAL_MANAGER_NON_BLOCKING_MODE) && (SERIAL_MANAGER_NON_BLOCKING_MODE > 0U)) serial_manager_status_t status = SerialManager_InstallTxCallback((serial_write_handle_t)s_writeHandle, Uart_TxCallBack, pBuffer); (void)status; assert(kStatus_SerialManager_Success == status); (void)SerialManager_WriteNonBlocking((serial_write_handle_t)s_writeHandle, pBuffer, streamLength); #endif /*SERIAL_MANAGER_NON_BLOCKING_MODE > 0U*/ } command_led(); /* update the previous device ID */ previousDeviceId = peerDeviceId; } 23. As last modification we need to ensure the commands sent by the user through the IoT toolkit App are correctly captured in the application. Locate the BleApp_GattServerCallback function in the wireless_uart.c file and add the two lines highlighted in yellow below considering the exact position in the code      static void BleApp_GattServerCallback ( deviceId_t deviceId, gattServerEvent_t *pServerEvent ) { uint16_t tempMtu = 0; switch (pServerEvent->eventType) { case gEvtAttributeWrittenWithoutResponse_c: { if (pServerEvent->eventData.attributeWrittenEvent.handle == (uint16_t)value_uart_stream) { command_uart=*pServerEvent->eventData.attributeWrittenEvent.aValue; command_lenght = pServerEvent->eventData.attributeWrittenEvent.cValueLength; BleApp_ReceivedUartStream(deviceId, pServerEvent->eventData.attributeWrittenEvent.aValue, pServerEvent->eventData.attributeWrittenEvent.cValueLength); } break; } case gEvtMtuChanged_c: { /* update stream length with minimum of new MTU */ (void)Gatt_GetMtu(deviceId, &tempMtu); tempMtu = gAttMaxWriteDataSize_d(tempMtu); mAppUartBufferSize = mAppUartBufferSize <= tempMtu ? mAppUartBufferSize : tempMtu; } break; default: { ; /* No action required */ } break; } }   24. We are now done with the code modifications, let us repeat the steps we need to build, Debug and connect through the IoT Toolkit Wireless UART option to see if the modifications are working as expected. Once you are connected to the FRDM-MCXW23 board through the App you can enter, as done before, any character and it will be prompted back through the terminal, now, entering 1 will turn the RBG RED LED on, 2 will turn the RGB BLUE LED on, 3 will turn the RGB GREEN on, 0 will turn the RBG LED white and 4 will turn the RBG LED off.     NOTE: you can see from the code, in the commandLed() function that we are setting up and configuring the GPIOs every time the UART receives the characters, 1, 2, 3 or 0.     BONUS: Change the code and use/add other trigger commands. Change the LED colors you can showcase. Send messages though UART once a special character (or a combination of them) is received.   Congratulations, you have reached the end of the Wireless or simply less wires. 
View full article