FRDM Training Hub

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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 ?

ディスカッション

ソート順:
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.
記事全体を表示
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.
記事全体を表示
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.
記事全体を表示
This project implements a configurable secure encrypted Ethernet communication node with the transmission of a large data image.
記事全体を表示
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
記事全体を表示
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 
記事全体を表示
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
記事全体を表示
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  
記事全体を表示
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
記事全体を表示
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
記事全体を表示
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.
記事全体を表示
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.  
記事全体を表示
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.
記事全体を表示
Objectives In this lab, you will learn: How to use the MCUXpresso Installer to obtain NXP Software (FreeMASTER) How to use Application Code Hub to import an example into the VS Code workspace How to build, clean, debug, and run the example. How to connect the Serial Monitor for UART console How FreeMASTER can be used as a real-time debug monitor and data visualization tool Hardware Requirements Personal Computer FRDM-MCXA153 Board Heart Rate 4 CLICK Module (MIKROE 5547) USB type-C cable   Software Requirements MCUXpresso for VS Code FreeMASTER v3.2 or latest FRDM-MCXA153 SDK Application Code Hub The Application Code Hub (ACH) repository enables engineers to easily find microcontroller software examples, code snippets, application software packs and demos developed by NXP in-house experts. This space provides a quick, easy and consistent way to find microcontroller applications. Find more information at www.nxp.com/ach.   Installing Prerequisites - Launch MCUXpresso for VS Code - Launch the MCUXpresso Installer from the QUICKSTART PANEL   - Install MCUXpresso SDK Developer, LinkServer, and FreeMASTER   Heart Rate Monitor Lab The NXP Application Code Hub provides a complete example of how to use the MCXA-153 microcontroller in a Heart Rate and SPO2 monitor application. This lab will walk through the steps to import, build, program and debug the example. The final section of the lab shows how to use FreeMASTER as a data-visualization tool for the acquired sensor data on the FRDM-MCXA153 development board. 1. Go to the Quick Start Panel 2. Select Application Code Hub 3. Filter Visible Examples (MCX + Sensors) - Go to the filter section next to the Search bar and select two filters. - Select MCX in the Device Families Section and Sensor in the Categories section of the filters   4. Search for Keywords in Examples - Search for the keyword 'heart rate'. - Select the demo "frdm mcxa153 freemaster heart rate". 5. Read Overview of Heart Rate Demo The Application Code Hub provides a consistent Readme Overview for every project. The FreeMASTER Heart Rate demo overview is previewed after clicking on the application card. Scroll through the readme to become familiar with the available contents like required hardware, software and setup instructions. 6. Select Destination for Project The wizard automatically provides a prompt to browse to a desired destination folder. Create the destination C:\NXP_ACH to store the project here. Or you can specify a custom location. 7. Import Project into Workspace Select Import Project(s) after entering the desired location. If a valid project is not available, the wizard only displays Import Repository, to allow a code repo, without a project, to be added to workspace. 8. Select Detected Project(s) The import wizard will scan the example repo and list valid projects that were discovered. This allows the user to select only the projects they want created. Select the mcuxpresso project listed at the top of the VS Code window. 9. Associate a Toolchain The last selection is to identify the Compiler toolchain to be used for the project. GCC will be used for this project. Select Arm GNU Toolchain 12.3.Rel1 (Or latest version available from MCUXpresso Installer prework) The scan may locate Compilers associated with MCUXPresso IDE. Verify the path and version between listed compilers. At this time the wizard will complete the project import. A Successful Conversion notification is displayed at the bottom of the screen. It is important to recognize that the selected Heart Rate example is a working project within the MCUXpresso IDE (Eclipse based). The VS Code extension has the ability to convert an existing MCUXpresso IDE projects for development in VS Code. 10. Navigating a Project in VS Code The MCUXpresso for VS Code extension includes a PROJECTS section to help users access useful project information. Users can review and modify project information with the following steps. Review Project Details Project details are shown in the Dropdown menu of the Projects Section in the MCUXpresso Extension Navigation Pane. • Settings: Workspace settings specific to the project • MCU: Targeted device. • Build Configurations: Select build configuration from available list (i.e. Debug or Release). • Debug Configurations: • Repository Information • Project Files 11. Working with Source Files There are two ways to view and modify the project's files: • Click on the Explorer Icon at the top of the VS Code left navigation pane.  • Expand the Project Files section from the PROJECTS view 12. Build the application The MCXA153 FreeMASTER Heart Rate project needs to build the application image. After the code builds without any errors, the application can be run on the FRDM board. The following steps require that you return to the MCUXpresso perspective by clicking the MCUXpresso for VS Code X icon in the Activity bar Build the project by clicking the Build Selected icon. After a successful build, the Terminal console displays the memory usage (or compiler errors if any). 13. Connect Serial Monitor to the board To use the Serial Monitor integrated into VS Code: - Connect the USB-C cable to J15 to power the FRDM board. The onboard debugger provides a USBUART bridge to interface with the Serial monitor. - Click on the SERIAL MONITOR found as a tab in the Terminal window at the Bottom of VS Code Window. NOTE: The default COM settings are valid for NXP eval boards: "115200, None..." - Click Start Monitoring to connect the monitor to the FRDM board’s auto-detected COM port. VS Code in light theme 14. Flash/Debug the Application This section uses the on-board debugger to connect to the MCU, and program the flash. LinkServer from NXP manages the GDB server for communicating with the NXP MCULink on-board debug probe. It includes support for flash programming. - Click the play icon to Debug the application: The application is flashed to the FRDM board and VS Code switches to the Debug perspective. Return to the SERIAL MONITOR tab under the Terminals. It switches to the OUTPUT terminal when a Debug session is started.  VS Code in light theme - The execution will be paused on a breakpoint. Click Continue/Play icon to continue execution. The application will advance to the start of main().   - Click Continue/Play icon a 2nd time for the Heart Rate application to launch inside main(). 15. View Heart Rate Values in Serial Terminal The Heart Rate application using the serial port to display information. The following should be displayed in the SERIAL MONITOR tab after main() starts. Place a finger on the sensor near the Heart silkscreened on Heart Rate 4 click board. The following should be displayed in the SERIAL MONITOR tab after a finger is placed on the sensor: A heart rate value will be calculated and displayed after 16. FreeMASTER Data Visualization FreeMASTER is a standalone application provided by NXP to help developers visualize, monitor and manipulate data available from their projects. The Heart Rate example includes a /freemaster folder that helps users get started using the tool. The settings in the Application Code Hub were established for an MCUXpresso IDE based project. There are a few changes that need to be made after the project is converted to a VS Code project. The following steps will properly configure FreeMASTER to work with the Heart Rate example project: Launch FreeMASTER Application There are two options for launching FreeMASTER. • Click on the heart_rate.pmpx using File Explorer. The FreeMASTER application should be associated with .pmpx file extensions. This will also automatically load the included project settings.   • Launch FreeMASTER by searching Windows Applications. • This will not load project settings. You will be required to Open Project using the FreeMaster menu as shown. Open the .pmpx project file. • Verify Project Options FreeMASTER has a few key settings to verify once a project is opened. A user should verify they are correctly set for the type of Debug Probe and location of the project output files. - Click Project -> Options from the menu bar. - Verify that the correct method is set for communicating with the board. The on-board Debug Probe for the FRDM-MCXA153 is by default shipped with NXP CMSIS-DAP firmware. Select FreeMASTER CMSIS-DAP Communication Plug-in found under the Comm tab, for Plug-in module:   - Verify that the correct Default symbol file is targeted for the VS Code project. The symbol file in VS Code projects is output under an /armgcc folder. Select the /armgcc folder within VS Code project MAP Files tab. The window will autodetect the Binary ELF File, and display this under File format:   - Visualize Data From Heart Rate Project The NXP software team has included a default visualization for the Heart Rate project. The demonstration showcases the different styles for project data to be shown. The following visualization settings are preset for the Heart Rate project: Welcome HTML Page: The HTML Pages (Under Options) points to welcome.html file. This provides structured web view for displaying elements. Beyond scope of this lab, but .html file can be reviewed to see how target values/charts are referenced in html. Oscilloscope Visual: View plots the values of a project variable. The plot axis are configured for scale and color. Heart Rate, SPO2 and ECG are configured. Variable Watch Table: After variables are configured to be tracked, they can be added to this table view.   Make sure that the debug probe is not in an active debug session in the IDE or VS Code. Click GO icon on the menu bar to initiate the project data visualization! The following points are highlighted for the FreeMASTER output. 1. Clicking on the elements listed under the Project Tree changes the view to the specific Oscilloscope Visual. 2. View the captured values for the variables in a Table view. 3. Visualization of data organized based on the layout defined in the Welcome.html.  
記事全体を表示
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
記事全体を表示
This article mainly introduces the design of the FRDM-MCXE31B and how to import and run ACH examples. Through this article, readers can gain a detailed understanding of the main resources of the FRDM-MCXE31B board, design files, and how to import, download, and run an SDK example.     Hardware Requirements One FRDM-MCXE31B board A personal computer One USB Type-C cable   Software Requirements SDK25.06.00_FRDM-MCXE31B (Download from: https://mcuxpresso.nxp.com) MCUXpresso IDE v25.6 or later (Download from: MCUXpresso IDE | NXP) Serial Terminal Software for PC: Windows: PUTTY or Tera Term USB Device Driver Board User Manual The FRDM-MCXE31B board is a design and evaluation platform based on the NXP MCX E31B microcontroller (MCU). The MCX E31B MCU is based on an Arm Cortex-M7 core, running at speeds of up to 160 MHz with a 2.95 V–5.5 V supply. The FRDM-MCXE31B board includes: One MCX E31B device 64 Mbit external serial flash (Winbond) FXLS8974CFR3 I2C accelerometer sensor NMH1000 I2C magnetic switch Three TJA1057BTK CAN PHYs Ethernet PHY RGB LED Push buttons MCU-Link debug probe circuit The board is compatible with Arduino shield modules, Pmod boards, and mikroBUS. For debugging, the board uses an onboard (OB) debug probe, MCU-Link OB, based on the NXP LPC55S16 MCU. In this document, the MCX E31B is referred to as the target MCU, and the LPC55S16 as the debug MCU. This document provides detailed information about the FRDM-MCXE31B board interfaces, accelerometer, power supplies, clocks, connectors, jumpers, push buttons, LEDs, and the MCU-Link OB debug probe. You can download the FRDM-MCXE31B Board User Manual [UM12330] from: nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/frdm-development-board-for-mcx-e31-mcus:FRDM-MCXE31B   Getting Started The Getting Started page provides not only an introduction to the board but also instructions on how to import SDK projects. https://www.nxp.com/document/guide/getting-started-with-the-frdm-mcxe31b-board:GS-FRDM-MCXE31B   Documentation All documentation, datasheets and application notes can be found on the MCXE31 landing page: https://www.nxp.com/products/MCX-E31   Application Code Hub We provide several MCXE31B application code hub examples. You can find the project code from the following links and import them into MCUXpresso IDE to run:   https://github.com/nxp-appcodehub/an-digital-encoder-tamagawa-on-mcx31/tree/main Other ACH examples will be published soon.   Hands-on The following video demonstrates how to import, download, and run an SDK project using MCUXpresso IDE, using the Hello World example as a case study. please see attached video.  
記事全体を表示
This article mainly introduces the design of the FRDM-MCXE247 and how to import and run ACH examples. Through this article, readers can gain a detailed understanding of the main resources of the FRDM-MCXE247 board, design files, and how to import, download, and run an SDK example.   Hardware Requirements One FRDM-MCXE247 board A personal computer One USB Type-C cable   Software Requirements SDK25.06.00_FRDM-MCXE247 (Download from: https://mcuxpresso.nxp.com) MCUXpresso IDE v25.6 or later (Download from: MCUXpresso IDE | NXP) Serial Terminal Software for PC: Windows: PUTTY or Tera Term USB Device Driver   Board User Manual The FRDM-MCXE247 board is a design and evaluation platform based on the NXP MCX E247 microcontroller (MCU). The MCX E247 MCU is based on an Arm Cortex-M4F core, running at speeds of up to 112 MHz with a 2.70 V–5.5 V supply. The FRDM-MCXE247 board includes: One MCX E247 device 64 Mbit external serial flash (Winbond) FXLS8974CFR3 I2C accelerometer sensor NMH1000 I2C magnetic switch Three TJA1057BTK CAN PHYs Ethernet PHY RGB LED Push buttons MCU-Link debug probe circuit The board is compatible with Arduino shield modules, Pmod boards, and mikroBUS. For debugging, the board uses an onboard (OB) debug probe, MCU-Link OB, based on the NXP LPC55S16 MCU. In this document, the MCX E247 is referred to as the target MCU, and the LPC55S16 as the debug MCU. This document provides detailed information about the FRDM-MCXE247 board interfaces, accelerometer, power supplies, clocks, connectors, jumpers, push buttons, LEDs, and the MCU-Link OB debug probe. You can download the FRDM-MCXE247 Board User Manual [UM12286] from: https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-MCXE247   Getting Started The Getting Started page provides not only an introduction to the board but also instructions on how to import SDK projects. https://www.nxp.com/document/guide/getting-started-with-the-frdm-mcxe247-board:GS-FRDM-MCXE247   Application Code Hub We provide several MCXE247 application code hub examples. You can find the project code from the following links and import them into MCUXpresso IDE to run: https://mcuxpresso.nxp.com/appcodehub?search=an-mc-pmsm-mcxe247 https://mcuxpresso.nxp.com/appcodehub?search=an-using-mcxe247-quadspi-module https://mcuxpresso.nxp.com/appcodehub?search=an-mcxe24x-flextimer-example https://mcuxpresso.nxp.com/appcodehub?search=an-mcxe24x-csec-getting-started   Hands-on The following video demonstrates how to import, download, and run an SDK project using MCUXpresso IDE, using the Hello World example as a case study. please see attached video.  
記事全体を表示
Discover how to build and deploy machine learning models for time series data using NXP’s eIQ Time Series Studio. This two-part training covers fan state classification and real-time anomaly detection on the FRDM-MCXN947 development board.
記事全体を表示
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
記事全体を表示
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  
記事全体を表示