Answer

Jan 27, 2025 - 05:23 AM
To set up the NXP MW320 Development Board for Matter development, follow these steps:
1. Hardware Setup:
- You will need the i.MX8MM EVK acting as a Thread Border Router and Chip Controller (i.MX8MM-EVKB) and the MW320 EVK acting as a Matter Accessory Device (MW320-EVK).
2. Matter Environment Setup:
- Matter development relies on open-source resources and Linux-based operating systems like Ubuntu. You can set up the Matter environment using either Windows Subsystem for Linux (WSL) or a Linux Virtual Machine.
- For WSL, follow the provided steps to install WSL Ubuntu 20.04 LTS. Make sure to check the WSL version and activate WSL 1 if version 2 is used.
- For a Linux Virtual Machine, download and install VirtualBox, then create a virtual machine using the Ubuntu 20.04 ISO.
3. Setting up Matter Environment:
- Install Matter dependencies by running the provided commands in the Linux terminal.
- Restart the Linux machine after the installation.
- Clone the Matter SDK using the provided git command.
- Change the directory to the cloned repository and run the activate script to start the build environment.
4. MW320 Matter Examples:
- The Matter SDK for MW320 platform provides an implementation for the all-clusters example.
- Change the directory to the all-clusters application base directory and download the MW320 SDK as a submodule.
- Generate the build files using GN and build the application image with the Ninja tool.
- The built application can be found in the /out/debug/ folder.
5. Flashing the Board:
- Install OpenOCD (Open On-Chip Debugger) package using the provided command.
- Prepare the MW320 firmware download image by creating symbolic links and converting the image.
- Flash the firmware image to MW320 using the provided commands.
- To view the application logs, open a terminal connection to the board using minicom.
6. Matter Network - Test Setup Instructions:
- Before setting up the Matter network, make sure you have the i.MX8MM as the Matter controller.
- Connect the i.MX8MM to the Wi-Fi AP network using the provided commands.
- Commission the MW320 board over Wi-Fi by connecting it to the AP and running the chip-tool pairing command with the necessary parameters.
- The MW320 all-clusters application can be used as a lighting device or a light-switch device.
- Use the provided chip-tool commands to control the GPIO41 LED and send On/Off cluster commands.
For more detailed information and step-by-step instructions, refer to the NXP MW320 Development Boards User Manual available at the provided link: [NXP MW320 Development Boards User Manual](https://www.nxp.com/part/MW320#/)
Add New Comment