Building on Windows
Install Git​
Git is an essential tool for version control in development. If you haven’t installed it yet, follow these steps:
-
Check if Git is installed by running
git --versionin your terminal.
-
If Git isn’t installed, follow the official installation guide to set it up for your system.
Install Make​
Make is crucial for building projects, especially when working with embedded systems. Matrix OS uses Make on top of the chip vendor-provided build system to achieve cross-platform compatibility.
-
Install Chocolatey, which will be used to get the latest version of Make.
-
Restart your terminal to ensure Chocolatey is ready to use.
-
Install Make:
choco install make -
Restart your terminal to make sure
Makeis ready to use. -
Confirm the installation by typing:
make --versionThis command should output the version of
Make, confirming it is installed correctly.
Clone Matrix OS Repository​
This step downloads the Matrix OS source tree and prepares its submodules.
-
Open your Command Prompt or preferred terminal.
-
Clone the Matrix OS repository with the following command:
git clone https://github.com/203-Systems/MatrixOS.git -
Navigate to the cloned repository:
cd MatrixOS -
Initialize Matrix OS repository:
git submodule update --init
Install ESP-IDF​
ESP-IDF (Espressif IoT Development Framework) is the vendor-provided toolchain and SDK for the ESP32-S3 SoC used in Mystrix.
- Install ESP-IDF 5.3.x by downloading the online installer. The examples below assume
v5.3.1. - Include ESP32-S3 tools if the installer asks which target tools to install.
- Go to the installer folder and run
install.batto finish the installation. If you didn't change the default install path, it should be atC:\espressif\v5.3.1\install.bat.
Build Matrix OS​
Now that you have completed all the requirements, it's time to build Matrix OS!
Use DEVICE=Mystrix for Mystrix 1 family devices. Use DEVICE=Mystrix2 for Mystrix 2 family devices.
- Load ESP-IDF in the current terminal session. You can use the installed
ESP-IDF V5.3 CMDshortcut or runC:\espressif\v5.3.1\export.batin a terminal.
For repeated development, configure your editor terminal or workspace to run the ESP-IDF export script before Matrix OS build commands.
-
Go to the root folder of Matrix OS if your terminal isn't there already.
-
Run this command to build Matrix OS:
make DEVICE=Mystrix build
For Mystrix 2:
make DEVICE=Mystrix2 build
- Upload MatrixOS to your Mystrix. Make sure your Mystrix is in upload mode.
Run this command to install psutil python package. You only have to do this once:
pip install psutil
Run this command to upload your compiled Matrix OS to your Mystrix:
make DEVICE=Mystrix uf2-upload
For Mystrix 2:
make DEVICE=Mystrix2 uf2-upload
- Your Mystrix should start flashing and automatically enter the newly compiled Matrix OS.
For target examples and command chains, see Build Matrix OS. Use build-dev when you need logs; see Debug Your Application (C++).
Comments