# Model-Based Design Toolbox MBDT MATLAB Simulink coding

The NXP MBDT includes an integrated Simulink®-embedded target supporting NXP MCUs for direct rapid prototyping and built-in support for software- and processor-in-the-loop (SIL and PIL) development workflows, systems and peripherals device interface blocks and drivers, a target-optimized Math and Motor Control library set (AMMCLib) for efficient execution on the target automotive MCUs and Real-Time Control Embedded Software Motor Control and Power Conversion Libraries (RTCESL) for other MCUs, and bit-accurate simulation results in the Simulink® simulation environment.

The NXP MBDT helps to generate all the code required automatically (including initialization routines and device drivers) to start up the MCU and run complex applications such as motor control algorithms and sensor-based and communication protocols while supporting builds with multiple compilers. The NXP MBDT supports a wide range of applications development and helps enable control engineers and embedded developers to shorten project life cycles.

For a BMS772 MBDT bringup example, see this article: <https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Example-Model-RDDRONE-BMS772/ta-p/1550394>

For a BMS application example in MBDT, see this how to add 4.3.2 (RDDRONE-BMS772 only) or 4.3.3 patch (MR-BMS771 & RDDRONE-BMS772): <https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-How-To/td-p/719984>

{% hint style="info" %}
It could be that more examples will be added in the future, look for the examples in the toolbox.
{% endhint %}

More information can be found here:&#x20;

* <https://www.nxp.com/design/design-center/software/automotive-software-and-tools/model-based-design-toolbox-mbdt:MBDT>
* <https://nl.mathworks.com/products/connections/product_detail/nxp-model-based-design-toolbox.html>
* <https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Model-Based-Design-Toolbox-for-S32K1xx-Automotive/ta-p/1107844>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nxp.gitbook.io/rddrone-bms772/software-guide-bare-metal-and-other/model-based-design-toolbox-mbdt-matlab-simulink-coding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
