お客様の素早い設計とより早い製品化を実現する、技術情報と専門知識をご紹介します。
1
Out of the Box2
Plug It In3
Get Software4
Set Up Build Environment5
Build and Load Using West Command Line6
Build and Load Using VS Code7
Troubleshooting VS Code8
Troubleshooting VS Code Continuationサインイン 進行状況を保存するには アカウントをお持ちでない方 アカウントを作成する。

The Trimension SR250 development board offers a flexible platform for integrating ultra-wideband (UWB) ranging and radar into consumer and industrial IoT solutions. It enables an easy integration of Trimension SR250 for presence, location and motion detection, helping improve efficiency and safety.
This page will guide you through the setup and operation of the Trimension SR250 development board.
The kit contents include:
Something went wrong! Please try again.
In addition to the kit contents, you will also need the following hardware.
FRDM-RW612 Development Board Some minor rework is necessary to route the API interface pins to the Arduino headers for proper communication with SR250-ARD board.
In order to allow the SR250-ARD shield to communicate with the FRDM-RW612 board via SPI, a small rework is required to expose the SPI signals on the Arduino headers.
Alternatively you could simply interconnect FRMD-RW612 Arduino compatible header pins D0 to D11 and D1 to D12 via jumper wires.
Something went wrong! Please try again.
In the first step, you will assemble the boards together through the Arduino headers:
Make sure both USB-C ports of the FRDM-RW612 board are connected to the laptop.
For additional guidance, please refer to the SR250 UWB Plug-and-Play Application .
Something went wrong! Please try again.
When setting up the development environment, you will need the following software:
Python 3.8 or later.
And the following dependencies:
# Install Python dependencies
pip3 install west ninja# Verify installations
python3 --version
cmake --version
ninja --version
west --versionSomething went wrong! Please try again.
The following steps below will guide you through setting up the build environment for Zephyr-based projects.
# Download SR250 Software to working directory
git clone https://github.com/nxp-uwb/sr250-uwbiot-zephyr.gitSomething went wrong! Please try again.
# Initialize west workspace
cd ~/sr250-uwbiot-zephyr
west init -l --mf west.yml uwbiot-topSomething went wrong! Please try again.
# Download Zephyr OS and all dependencies
west updateSomething went wrong! Please try again.
# Install Zephyr Python dependencies
pip install -r zephyr/scripts/requirements.txtSomething went wrong! Please try again.
# Set the environment (required for each new terminal session)# Windows:
zephyr\zephyr-env.cmd# Linux:
source zephyr/zephyr-env.shSomething went wrong! Please try again.
# Example: Build ranging controller demo
west build -b frdm_rw612 -p auto uwbiot-top/demos/common/demo_ranging_controller/zephyr# Example: Build radar demo
west build -b frdm_rw612 -p auto uwbiot-top/demos/radar/demo_radar/zephyrReplace the demo path with the specific demo that you want to build.
Note: To ensure that the SR250 firmware and calibration parameters are up to date, it is recommended to run the following before running other demos:
Something went wrong! Please try again.
# Flash built application using west flashSomething went wrong! Please try again.
Open your serial terminal application and connect to the FRDM-RW612 HS-USB interface through Virtual COM port set to the following configurations:
After resetting the FRDM-RW612 board, the demo application will display initialization messages, status updates and operational logs in the terminal window.
Something went wrong! Please try again.
In this step, you will ensure that MS Visual Studio (VS) Code is properly installed.
Follow these steps to install the needed VS Code extensions for Zephyr development:
Step 1: Open Extensions View
Ctrl+Shift+X or Cmd+Shift+X on macOS)Step 2: Install the Required Extensions
To set up VS Code, you will install the following extensions:
Step 3: Install MCUXpresso Zephyr Dependencies
During the setup, the Zephyr integrated development environment (IDE) extension will prompt you to install the required dependencies for MCUXpresso Zephyr development.
Open MCUXpresso Installer
Note: If the MCUXpresso Secure Provisioning Tool (SEC) or FreeMASTER fails to install, you can move forward without these components.
Part 1: Zephyr Dependencies Installation
During the first part of installing Zephyr dependencies, the image below is what will appear on your screen.
Part 2: Zephyr Dependencies Installation
During the second part of installing Zephyr dependencies, the image below is what will appear on your screen.
Note: The dependency installation may take several minutes depending on your Internet connection.
Import the FRDM-RW612 Zephyr Repository
Ctrl+Shift+P or Cmd+Shift+P on macOS)
Understanding the Project Structure
The FRDM-RW612 Zephyr project is CMake-based, which provides:
Import the CMake Project
In the following steps, you will complete the import of CMake.
Note: Set the App type to Repository application.
Important: Ensure that the CMake Tools extension is properly installed before attempting to import the project.
Something went wrong! Please try again.
In the following steps, you will build and flash the application.
Select Build Configuration
Build the Application
Build button in the status bar or open Command Palette and select CMake: BuildBuild Output Location
The compiled binaries will be generated in the build directory that corresponds to your selected configuration:
build/Debug/ (for Debug builds)build/Release/ (for Release builds)Note: The build process may take a few minutes on the first run as dependencies are compiled.
Something went wrong! Please try again.
In the following steps, you will debug your development environment.
Configure Debug Settings
Ctrl+Shift+D)
Hardware Connection Checklist
Before you begin debugging, verify that the:
Start Debugging
F5 or click the green play button in the Run and Debug viewSomething went wrong! Please try again.
This section covers common issues for both VS Code and command line builds.
# Install west via pip
pip install --user west
export PATH=$PATH:~/.local/binSomething went wrong! Please try again.
# Ensure west update completed successfully
west update# Try a pristine build
west build -b frdm_rw612 -p always Something went wrong! Please try again.
Symptom:
You may encounter errors (as shown below) even though the files do exist in your workspace:
fatal error: : No such file or directory CMake Error: Cannot find source file: Error: The system cannot find the path specifiedCause:
Windows has a default MAX_PATH limit of 260 characters. When file paths exceed the character limit, Windows cannot access them, resulting in “file not found” errors.
Solution:
To locate the files, either use shorter workspace paths (such as C:\uwb) or enable long path support by using one of the following methods:
# first method: in registry editor
1. Press Win + R, type "regedit" and press Enter
2. Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
3. Find or create a DWORD value: LongPathsEnabled
4. Set value to: 1
5. Restart your computer# Second method: in Group policy editor
1. Press Win + R, type "gpedit.msc" and press Enter
2. Navigate to: Computer Configuration > Administrative Templates > System > Filesystem
3. Enable "Enable Win32 long paths"
4. Restart your computer# Third method: via PowerShell command (to be run as Administrator)
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -ForceSomething went wrong! Please try again.
When encountering compatibility issues, try the Windows Subsystem for Linux (see below).
# Install WSL2 from PowerShell (Administrator)
wsl --install# Then work within WSL2 Ubuntu environment# Follow Linux instructions from thereSomething went wrong! Please try again.
The above errors occur when CMake cannot find generated dependency files, often due to:
Error Example
With CMake, you may encounter the following:
fatal error: opening dependency file modules\psa_crypto_driver\...
\mcuxClPsaDriver_generate_ecp_key.c.obj.d: No such file or directoryfatal error: opening dependency file build/CMakeFiles/myproject.dir/src/
main.c.obj.d: No such file or directoryThis happens due to any of the following issues:
Solutions
Below are suggestions for resolving CMake errors.
# 1. Clean build directory completely
rm -rf build/
# 2. Re-run west update to ensure all dependencies are fetched
west update
# 3. Try pristine build
west build -b frdm_rw612 -p always
# 4. If still failing, check if all modules are present
west list
# 5. Verify CMake can find the toolchain
cmake --version Something went wrong! Please try again.
If you encounter a Python mismatch, refer to the following:
# Ensure Python 3.8 or later
python --version
# Upgrade if needed
sudo apt install python3.10 # LinuxSomething went wrong! Please try again.
To rule out the CMake version being out of date, refer to the following:
# Check version
cmake --version
# Upgrade via pip
pip install --upgrade cmake
# Or install from official source
# Linux: https://cmake.org/download/
# macOS: brew install cmakeSomething went wrong! Please try again.
If Ninja is not found, refer to the following:
# Install Ninja
pip install ninja
# Or via package manager
sudo apt install ninja-build # Linux
brew install ninja # macOSSomething went wrong! Please try again.
When the SDK is not found, refer to the following:
# Set environment variable
export ZEPHYR_SDK_INSTALL_DIR=~/zephyr-sdk-0.16.5
# Add to ~/.bashrc for persistence
echo 'export ZEPHYR_SDK_INSTALL_DIR=~/zephyr-sdk-0.16.5' >> ~/.bashrcSomething went wrong! Please try again.
If the system indicates that it is out of memory, refer to the following:
# Limit parallel jobs
west build -b frdm_rw612 -p auto -- -j2
# Or set in environment (Linux)
export CMAKE_BUILD_PARALLEL_LEVEL=2 Something went wrong! Please try again.
If you encounter a disk space error, refer to the following:
# Check available space
df -h .
# Clean old builds
rm -rf build/
# Clean west cache (if needed)
rm -rf ~/.west/Something went wrong! Please try again.
If you encounter module import errors, refer to the following:
# Reinstall requirements
pip install -r zephyr/scripts/requirements.txt --force-reinstall
# Clear pip cache
pip cache purgeSomething went wrong! Please try again.
If you are denied permission when flashing, refer to the following:
sudo usermod -a -G dialout $USER# Log out and log back inSomething went wrong! Please try again.
If flashing fails due to the device not being found, refer to the following:
# Check if device is connected
# Check J-Link connection
JLinkExe # Should detect device (Linux)Something went wrong! Please try again.
If you encounter an error that the board is not found, refer to the following:
# List available boards
west boards
# Ensure you're using the correct board name
# For FRDM-RW612: frdm_rw612Something went wrong! Please try again.
This section continues covering common issues for both VS Code and command line builds.
While running the demo application, if you encounter the following error (shown below) in the logs, this indicates a mismatch between SR250 FW version and UWBIOT MW version.
Running the demo application uwbiot-top/demos/SR2xx/demo_sr2xx_fw_update will allow SR250 FW to update.
Something went wrong! Please try again.
If you encounter a conflict related to multiple versions of Python, refer to the following:
# Use virtual environment
python -m venv ~/Myvenv
source ~/Myvenv/bin/activate
# Then proceed with setupSomething went wrong! Please try again.
The following are additional commands to assist with the debugging process:
# Verbose build
west build -b frdm_rw612 -p auto -v # Show west configuration
west config# List all projects and their status
west list# Show build system info
west build -b frdm_rw612 -p auto -- --trace # Check environment variables
env | grep ZEPHYRSomething went wrong! Please try again.
If issues persist, consult these additional resources:
Something went wrong! Please try again.
The following are additional commands to assist with the debugging process:
# Verbose build
west build -b frdm_rw612 -p auto -v # Show west configuration
west config# List all projects and their status
west list# Show build system info
west build -b frdm_rw612 -p auto -- --trace # Check environment variables
env | grep ZEPHYRSomething went wrong! Please try again.
Step 1: Retrieve UWBIoT middleware for SR250
Step 2: Initialize West Workspace
Step 3: Update Dependencies
Step 4: Install Python Dependencies
Step 5: Set Up Environment
Installing VS Code Extensions
Building and Flashing the Application
Debug Environment Setup
West Command Not Found (Linux)
Build Fails (“No Such File or Directory”)
Windows: File Not Found Errors for Existing Files
Windows: Use WSL2 (Recommended Alternative)
CMake Error (“fatal error: opening dependency file” or “No such file or directory”)
Python Version Mismatch
CMake Version Is Too Old
Ninja Not Found
Zephyr SDK Not Found (Linux)
Out of Memory During Build
Disk Space Issues
Module Import Errors in Python
Permission Denied When Flashing (Linux)
Flash Fails/Device Not Found
Board Not Found Error