> For the complete documentation index, see [llms.txt](https://nxp.gitbook.io/rddrone-bms772/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nxp.gitbook.io/rddrone-bms772/software-guide-bare-metal-and-other/model-based-design-toolbox-mbdt-matlab-simulink-coding.md).

# 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>
