© 2020 NXP Semiconductors. All rights reserved
Model-Based Design Toolbox
KVx Series
Quick Start Guide
Automatic Code Generation for the KVx Family of Processors
Version 1.0.0
Target Based Automatic Code Generation Tools
For MATLAB™/Simulink™/Stateflow™ Models working with Simulink Coder ™ and Embedded Coder®
Model-Based Design Toolbox KVx Series
Quick Start Guide
Summary
1 Installation .......................................................................................................................... 1-3
1.1 System Requirements .................................................................................................. 1-3
1.2 Installation Steps .......................................................................................................... 1-3
1.2.1 Run Add-on installer ............................................................................................ 1-4
1.2.2 Setting the Path for Model-Based Design Toolbox and Toolchain Generation ... 1-8
2 Run Models ...................................................................................................................... 2-10
2.1 Examples Library & Help .......................................................................................... 2-10
2.2 Hardware Setup ......................................................................................................... 2-12
2.3 A “Hello World” Example ......................................................................................... 2-13
Model-Based Design Toolbox KVx Series
Quick Start Guide
1 Installation
Installing the Model-Based Design Toolbox is the first step in setting up and running automatic
C code generation from MATLAB/Simulink for NXP’s embedded target processors and
development boards.
1.1 System Requirements
For a flowless development experience the minimum recommended PC platform is:
• Windows® OS: any x64 processor
• At least 4 GB of RAM
• At least 6 GB of free disk space.
• Internet connectivity for web downloads.
Operating System Supported
1.2 Installation Steps
NXP’s Model-Based Design Toolbox is delivered as MATLAB Toolbox Package that can be
installed offline or online from MathWorks Add-ons. This document shows how to install the
offline package, assuming you have already downloaded the file from NXP’s MBDT official
download web page.
To have the toolbox installed and configured properly the following actions should be executed:
1. Run the MATLAB toolbox package file *.mltbx downloaded from NXP’s Model-
Based Design Toolbox web page by pressing on the Download button.
2. Setup the MATLAB path for Model-Based Design Toolbox and generate the appropriate
toolchain setting for the user MATLAB environment.
Each of these actions is explained in the following sub-chapters.
Model-Based Design Toolbox KVx Series
Quick Start Guide
1.2.1 Run Add-on installer
Install the NXP’s Model-Based Design Toolbox by double-clicking the *.mltbx file. This will
activate the MATLAB Add-ons installer that will automatically start the installation process.
After the MATLAB opens, you will be prompted with the following options:
1. Indicate acceptance of the NXP Software License Agreement by selecting “I
Accept” to proceed.
Model-Based Design Toolbox KVx Series
Quick Start Guide
2. The rest of the process is silent and under MATLAB control. All the files will be
automatically copied into the default Add-Ons folder within the MATLAB
The default location can be changed before installation by changing the Add-Ons path
from MATLAB Preferences
Note: It is recommended to install the MATLAB and NXP Toolbox into a location
that does not contains special characters, empty spaces, or mapped drives.
Model-Based Design Toolbox KVx Series
Quick Start Guide
3. After a couple of minutes (4-5min), the NXP’s Model-Based Design Toolbox should
be visible as a new Add-ons.
4. NXP’s Model-Based Design Toolbox layout and Simulink Library are shown below