MathWorks’ Simulink code generation targets have now been built into Freescale’s new Motor Control Development Toolbox through Embedded Coder.
The toolbox, consisting of Simulink motor control blocks and target-ready code generation support, lets automotive and industrial controls engineers design motor control systems using Freescale microprocessors in IEC 61508 (SIL3) and ISO 26262 (ASIL-D) compliant systems.
With the Motor Control Development Toolbox, engineers can design motor algorithms as well as configure and generate all software needed to execute the algorithms on any Freescale MPC5643L or PXS20 hardware platform.
The toolbox includes a Motor Control Library developed by Freescale’s Motor Control Center of Excellence. With this library, engineers can model their designs using blocks optimised for fast execution on Freescale MCUs and run bit-accurate simulations of those designs.
The toolbox offers optimised code generation and support for model-in-the-loop (MIL), software-in-the-loop (SIL) and processor-in-the-loop (PIL) testing through Embedded Coder from MathWorks.
“Our automotive and industrial automation processors are increasingly deployed by engineers who use Model-Based Design,” said Steve Pancoast, vice president of Product Solutions for Freescale’s Automotive, Industrial and Multi-Market Solutions Group.
“The blocks in the Motor Control Development Toolbox represent years of motor control IP, and now with the toolbox, engineers can automatically implement, verify, and optimise their designs for Freescale’s newest processors.”
According to Tom Erkkinen, embedded applications and certification manager at MathWorks, “Customer reaction to the breadth and depth of the capabilities provided by the Motor Control Development Toolbox has been remarkable and serves as a testament to the strength of Freescale’s investment and support of Model-Based Design.”
The Motor Control Development Toolbox supports the MPC564xL, MPC567xK and PXS30 and PXS20 MCU families.
Block libraries in Motor Control Development Toolbox provide base math functions including trigonometry, PI controllers, FIR and IIR filters, and motor control operations including Park and Clarke transforms. Peripheral block support includes ADC and PWM, as well as SPI and CAN buses.
The generated C source code can be automatically built with Freescale CodeWarrior IDE, Wind River Diab, Green Hills Software MULTI, and other compilers.
For examining software on target hardware, the toolbox provides FreeMASTER, which enables parameter tuning, real-time monitoring, and data logging.