........................29 DD A END DEVICE IN ATTER ETWORK 7.1.1 Pairing commissionee(Lighting node)tocommissioner(OTBR) ................29 7.1.2 Controll the device ............................... 30 7.2 A CHIP-TOOL ............................... 30 NDROID NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
The i.MX 8M Mini is NXP’s first embedded multicore applications processor built using advanced 14LPC FinFET process technology, providing more speed and improved power efficiency. With commercial and industrial level qualification and backed by NXP’s product longevity program, the i.MX 8M Mini family may be used in any general purpose industrial and IoT application.
A serial COM terminal for the host computer o For instructions on how to set up a serial COM terminal software, please refer to page 14 in the i.MX 8M Mini LPDDR4 EVKB Hardware User's Guide. Figure 2-1 i.MX 8M Mini + K32W Matter setup NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0...
2.3 Hardware connections OTBR i.MX8MM + 88W8987 + K32W NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 6
Note: Although L5.15.52 BSP contains the IW612 driver, it only support Wi-Fi/BT, it doesn’t support thread. So for Matter enablement, you need to build the IW612 OTBR driver and firmware separately. NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Restart your machine to complete the WSL installation 2. Install the Ubuntu 20.04 from Microsoft Store Create a user account and password for your new Linux distribution NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
ISO. Configure the virtual machine: Linux Ubuntu 20.04 (64 bit); VM (Virtual Machine) disk size – more than 20GB; NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 9
Enable USB controller -> USB 1.1(OHCI) Controller (support for USB 2.0 is recommended, if possible, this being available via the Oracle VM VirtualBox Extension Pack); Enable network adapter-> Adapter 1 -> Attached to Bridged Adapter; NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Linux images for embedded and IOT (Internet of Things) devices, or anywhere a customized Linux OS (Operating System) is needed. NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 11
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo $ export PATH=${PATH}:~/bin $ mkdir ${MY_YOCTO} $ cd ${MY_YOCTO} $ repo init -u https://github.com/nxp-imx/imx-manifest-b imx-linux-kirkstone -m imx- 5.15.52-2.1.0.xml $ repo sync NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 12
Python 2.7.x Change the current directory to the top directory of the Yocto source code and execute the command below. $MACHINE=imx8mmevk DISTRO=fsl-imx-xwayland source sources/meta-matter/tools/imx-iot- setup.sh bld-xwayland-imx8mm NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 13
The system will create a directory bld-xwayland-imx8mm/ and enter this directory automatically, execute the command below under these directory to generate the Yocto images. $ Bitbake imx-image-multimedia NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 14
Use the command "ls /dev/sd*" to verify the name of the SD card device!) $ cd ${MY_images} $ bzip2 -d imx-image-multimedia-imx8mmevk.wic.bz2 $ sudo dd if=imx-image-multimedia-imx8mmevk.wic of=/dev/sdc bs=4M conv=fsync NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 15
SDK in a new shell, for example: $ . /opt/fsl-imx-xwayland/5.15-kirkstone-imx8mm/environment-setup-armv8a-poky-linux After the SDK package installed in the build machine, the Yocto build environment can be imported using the command: NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
$ git clone https://github.com/openthread/ot-br-posix $ cd ot-br-posix $ git checkout -t origin/main $ git submodule update –init $ source ${yocto_matter_sdk}/environment-setup-cortexa53-crypto-poky-linux For the i.MX8MM + K32W configuration: NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 17
For the i.MX8MM + IW612 configuration $ ./script/cmake-build -DOTBR_BORDER_ROUTING=ON -DOTBR_WEB=ON \ -DBUILD_TESTING=OFF -DOTBR_DBUS=ON - DOTBR_DNSSD_DISCOVERY_PROXY=ON \ -DOTBR_SRP_ADVERTISING_PROXY=ON -DOT_THREAD_VERSION=1.3 \ - DOTBR_INFRA_IF_NAME=mlan0 -DOT_POSIX_CONFIG_RCP_BUS=SPI \ -DOTBR_BACKBONE_ROUTER=ON - DOTBR_BACKBONE_ROUTER_MULTICAST_ROUTING=ON \ -DOTBR_MDNS=mDNSResponder \ - DCMAKE_TOOLCHAIN_FILE=./examples/platforms/nxp/linux-imx/aarch64.cmake NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 18
Put the power switch on the ON position After the boot sequence when you are prompted to type in an username use “root” (no password required) NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
IMX8MM and supports Matter V1.0 firmware. $ DK6Programmer.exe -s COM${X}-e FLASH -p ot-rcp-check-usart-idle-not-txifo-dmacore- interface.bin Set /etc/radvd.conf to enable IPv6 RA functions $ vi /etc/radvd.conf interface mlan0 AdvSendAdvert on; NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 20
$ ip6tables -A FORWARD -i mlan0 -o wpan0 -j ACCEPT $ ip6tables -A FORWARD -i wpan0 -o mlan0 -j ACCEPT $ hciconfig hci0 up $ otbr-web & NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Build the Chip-Tool by running the following command: $./scripts/build/build_examples.py --target imx-chip-tool build Or you can build an end-node type app (e.g. Thermostat app): $./scripts/build/imxlinux_examples.shexamples/nxp-thermostat/linux/ out/nxp- thermosta debug NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
− Look for the IPv4 address in the mlan0 interface − − Open a new connection on the WinSCP application using the IPv4 address and the NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 26
Plug the uSD card back into the i.MX8 Mini board and boot it up − Inside the /home/root folder copy the chip-tool file from /run/media/mmcblk1p1/ − NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
{SETUP_PIN_CODE}{DISCRIMINATOR} Where: {NODE_ID_TO_ASSIGN} - the matter node id; {ACTIVE_DATASET} - Thread operational active dataset. The format is hex:xxxxxx). {SETUP_PIN_CODE} – pin code, default value is 20202021; NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 28
Read Channel Attribute from the Thread Diagnostic cluster $ ./chip-tool threadnetworkdiagnostics read channel 1 0 Read fabrics list based on the basic cluster $ ./chip-tool operationalcredentials read fabrics-list 1 0 NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Run : DK6Programmer.exe-s COMxx -p k32w061dk6_EraseExtFlash.bin then input “1”on the UARTconsole to start “Erase Chip...” and wait untill you receive the “Chip Erased !!!” log printed. NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
In this demo an android smartphone is used as a controller, the i.MX8M MINI will act as OTBR and we will add the K32W as an end device in the Matter Network. ( Android chip-tool build guide) NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 31
The light app gives through the logs a link to the pairing QR code to be scanned, e.g. https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00 Another option is tu input the manual pairing code in the text box from the bottom of the screen NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Page 32
Click submit, then input OTBR network information that were previously setup when starting the OTBR If the pairing succeeds you will be able to control the ON/OFF and Level Control clusters NXP Semiconductors. Getting started with i.MX 8M Mini and Matter Rev. 1.0 NXP Semiconductors...
Need help?
Do you have a question about the i.MX 8M Mini and is the answer not in the manual?
Questions and answers