Professional Documents
Culture Documents
1-1
© 2022 NXP Semiconductors. All rights reserved
Summary
Step 1: Create a workspace folder on the user machine and switch MATLAB current folder to
point to this workspace location:
Step 4 (Method 1): Choose the NXP IMXRT hardware board from the Model Settings in the
MODELING tab.
Step 4.2: Select the NXP target from Hardware Board. This selection should match the
evaluation kit you plan to test the code for. After the selection is made, press the
Apply button.
- A file with extension <model_name>Config.mex – this is the file created with MCUX
Configuration Tool that is used for pins, clock, and peripherals initialization. This .mex
file will have enabled the peripherals that are supported by the toolbox. Starting from this
file the user can change the default configuration for any of the peripheral instances (add
new instances, disable instances, etc.) and also any of the configured pins.
- A folder with naming pattern <model_name>Config - this folder will have a structure
that is similar to the MCUXpresso IDE projects, and will contain the SDK files that are
needed to build the model and generate a binary application that will run on the board.
-
The user can now add Simulink blocks in the model from the NXP i.MXRT1xxx Simulink library
from Simulink Library Browser:
Step 4 (Method 2): An alternative method for the user to create the project files is to access the
Library Browser, click on NXP Model Based Design Tollbox for i.MX RT MCUs and choose
the desired blocks for the new model.
Step 1: Select the Download method from Hardware Implementation in Model Settings.
The default Download method (without the need for additional software and/or hardware probes)
is OpenSDA. For this, the user must select the Drive on his/her machine where the OpenSDA
firmware of the board is mapped after the NXP evaluation board is plugged in via USB.
Step 3: A new Tab called C CODE will appear. Here, to deploy the model on the hardware press
the Build button. If the user wishes to only generate the code, press the arrow under the build
button and press on Generate Code.
Congratulations! You have successfully created and deployed your Simulink model to the
hardware.
MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered
trademarks, and TargetBox is a trademark of The MathWorks, Inc.
Microsoft and .NET Framework are trademarks of Microsoft Corporation.
Flexera Software, Flexlm, and FlexNet Publisher are registered trademarks or trademarks of
Flexera Software, Inc. and/or InstallShield Co. Inc. in the United States of America and/or other
countries.
NXP, the NXP logo, CodeWarrior and ColdFire are trademarks of NXP Semiconductor, Inc.,
Reg. U.S. Pat. & Tm. Off. Flexis and Processor Expert are trademarks of NXP Semiconductor,
Inc. All other product or service names are the property of their respective owners