This Getting Started has been tested on Windows 10 & 11 and Linux (Ubuntu 24.0.4). Also note that examples used in this Getting Started could depend on older tools and libraries. Most notably our dependency manager plugin (using Gradle) could be an older version.
This Getting Started is separated in two main parts.
The first part consists of running a demo application on the Virtual Device. All you need is:
It contains the sources of the VEE Port which will be necessary to build and run applications on the simulator and on the device. The VEE Port also includes some applications samples which will be used in this Getting Started.
You can download the i.MX RT1170 VEE Port using the following commands:
The toolchain requires the path to the VEE Port sources to be as short as possible and contain no whitespace or non-ASCII character.
It is recommended to clone the repository as close as possible to your file system root.
Set up the i.MX RT1170 VEE Port project on your IDE
CMake is the tool that will generate the build files of the BSP.
The VEE Port requires CMake version 3.27 or higher (tested with 3.30).
Run the installer and select the option to add CMake to the PATH for the current user.
If the installer did not add CMake to your PATH, add the bin folder of the CMake installation directory (e.g. C:\ProgramFiles\CMake\bin) manually:
Open the Edit the system environment variables application on Windows.
Click on the Environment Variables… button.
Select Path variable under the User variables section and edit it.
Click on New and point to the folder to add.
Click on the Ok button until it closes Edit the system environment variables application.
The same steps are used to add the other tools of this section to your PATH.
Check that the tool has been properly installed by running the command: cmake--version in a new command prompt, it should print the CMake version you installed.
LinkServer is the tool used to flash the board with the on-board probe.
The VEE Port requires LinkServer version 1.6.133 or higher.
Download and run the LinkServer installer for Windows.
Add the LinkServer_{version} folder located where you installed LinkServer (e.g. C:\nxp\LinkServer_24.12.21) to your PATH (see how to edit the Path variable).
Check that LinkServer has been properly installed by connecting the board and running the command: LinkServer--version, it should print the LinkServer version you installed.
Check that the dip switches (SW1) are set to OFF, OFF, ON, and OFF.
Connect a micro-USB cable to J86 to power the board.
You can connect a 5V power supply to J43 if you need to use the display
The USB connection is used as a serial console for the SoC, as a CMSIS-DAP debugger, and as a power input for the board.
The VEE Port uses the virtual UART from the i.MX RT1170 EVKB USB port. A COM port is automatically mounted when the board is plugged into a computer using a USB cable. All board logs are available through this COM port.
The COM port uses the following parameters:
Baudrate
Data bits
Parity bits
Stop bits
Flow control
115200
8
None
1
None
You can have a look at your application logs with an RS232 Terminal (e.g. Termite).
Congratulations! You have finished setting up your environment. You are now ready to discover how to build and flash a MicroEJ application.
Build the Executable for i.MX RT1170 Evaluation Kit
In order to build the Executable of the animatedMascot Application, the SDK provides the buildExecutable Gradle task.
Note
If you are using another IDE than IntelliJ IDEA, please have a look at Build an Executable section.
Come back to this page if you need to activate an Evaluation License.
Double-click on the buildExecutable task in the Gradle tasks view.
The build stops with a failure.
Go to the top project in the console view and scroll up to get the following error message:
Copy the UID. It will be required to activate your Evaluation license.
Request your Evaluation License:
Request your Evaluation license by following the Request your Activation Key instructions. You will be asked to fill the machine UID field with the UID you copied before.
When you have received your activation key by email, drop it in the license directory by following the Install the License Key instructions (drop the license key zip file to the ~/.microej/licenses/ directory).
Now your Evaluation license is installed, you can relaunch your application build by double-clicking on the buildExecutable task in the Gradle tasks view. It may take some time.
The Gradle task deploys the Application in the BSP and then builds the BSP using Make.
The animatedMascot application is built and ready to be flashed on i.MX RT1170 Evaluation Kit once the hardware setup is completed.
Flash the Application on the i.MX RT1170 Evaluation Kit
In order to flash the animatedMascot Application on i.MX RT1170 Evaluation Kit, the application provides the runOnDevice Gradle task.
Note
If you are using another IDE than IntelliJ IDEA, please have a look at Run on Device section.
Double-click on the runOnDevice task in the Gradle tasks view. It may take some time.
Once the firmware is flashed, you should see the animatedMascot running on your board.
Fig 1. The Application running on the i.MXRT1170 Evaluation Kit
If you are an embedded engineer, you could look at our VEE port examples at GitHub. And to learn how to create custom VEE Ports, you can read our VEE Porting Guide.
You can also follow the Kernel Developer Guide for more information on our multi-application framework or read about our powerful wearable solution called VEE Wear.
Last but not least, you can choose to learn about specific topics by following one of our many Training Courses ranging from how to easily debug applications to setting up a Continuous Integration process and a lot of things in between.