Deploying Battery Management System Algorithms on NXP S32K from Simulink

Date Time
15 Sep 2020
9:00 AM EDT
15 Sep 2020
2:00 PM EDT


Battery management systems (BMS) provide for safe and efficient operation of battery packs in electric vehicles, grid power storage systems, and other battery-driven equipment.

This webinar shows how to use Simulink and Embedded Coder to generate C code for BMS algorithms and deploy them to an NXP S32K microcontroller.  Starting with Kalman filter-based state-of-charge (SoC) and cell balancing algorithms modeled in Simulink, we will use Embedded Coder to generate optimized code for the NXP microcontroller. The code generation workflow will feature the use of the NXP Model-Based Design Toolbox, which provides an integrated development environment and toolchain for configuring and generating all the necessary software to execute complex applications on NXP MCUs. In addition, Model-Based Design Toolbox includes a Simulink embedded target for NXP MCUs and peripheral device blocks and drivers.


  • Simulating battery state-of-charge (SoC) and cell balancing algorithms in Simulink
  • Generating optimized, production ready code with Embedded Coder
  • Deploying code to an NXP S32K microcontroller using the NXP Model-Based Design Toolbox

Please allow approximately 45 minutes to attend the presentation and Q&A session. We will be recording this webinar, so if you can't make it for the live broadcast, register and we will send you a link to watch it on-demand. 

About the Presenters

Chirag Patel, MathWorks

Chirag Patel works with engineers in control system design to streamline the transition from desktop simulations to real-time testing and hardware-in-loop (HIL) testing. Prior to joining MathWorks, Chirag worked at Lucid Motors, where he led the efforts of adopting Model-Based Design for electric powertrain and battery management algorithms. Chirag holds a master’s degree in control systems from Wichita State University, Kansas.

Marius Andrei, NXP

Marius Andrei joined NXP in 2017 where contributes to Model-Based Design Software solutions development for NXP Automotive Products. Marius graduated from the Politehnica University of Bucharest in Romania with a master's degree in Advanced Computer Architectures.

Product Focus

You are already signed in to your MathWorks Account. Please press the "Submit" button to complete the process.