Code Generation for ARM Cortex-M and ARM Cortex-A Processors

Generate C code optimized for ARM® Cortex®-M and ARM Cortex-A processors.

The DSP System Toolbox™ supports optimized C code generation for popular algorithms like FIR filtering and FFT on ARM Cortex-M and ARM Cortex-A processors. To generate this optimized code, you must install the Embedded Coder® Support Package for ARM Cortex-M Processors or Embedded Coder Support Package for ARM Cortex-A Processors. In addition, you must have the following products: DSP System Toolbox, MATLAB® Coder™, Embedded Coder, Simulink® and Simulink Coder for Simulink based workflows.

Using these Embedded Coder support packages, you can generate C code that can link with the CMSIS library or calls the Ne10 library functions. This generated code can be compiled to provide optimized executables that run on ARM Cortex-M or ARM Cortex-A processors.

You can also port the generated ARM Cortex-M CRL code from MATLAB to KEIL μVision IDE and IAR Embedded Workbench. For details, see Port the Generated ARM Cortex-M CRL Code from MATLAB to KEIL μVision IDE and Port the Generated ARM Cortex-M CRL Code from MATLAB to IAR Embedded Workbench.

To download the Embedded Coder support packages for the ARM Cortex processors, see https://www.mathworks.com/hardware-support.html.

To obtain more information on the support packages and instructions on downloading them, see Embedded Coder Support Package for ARM Cortex-M Processors and Embedded Coder Support Package for ARM Cortex-A Processors.

Topics

ARM Cortex-M Processors

Supported DSP System Toolbox Blocks and MATLAB System Objects for CMSIS Library (Embedded Coder Support Package for ARM Cortex-M Processors)

Deployable blocks and System objects supporting CMSIS library

Supported CMSIS Functions for ARM Cortex-M Processors (Embedded Coder Support Package for ARM Cortex-M Processors)

Supported CMSIS Functions

CMSIS Conditions for DSP Blocks to Support ARM Cortex Processors (Embedded Coder Support Package for ARM Cortex-M Processors)

CMSIS CRL Conditions for DSP blocks to support ARM Cortex-M

CMSIS Conditions for DSP System Objects to Support ARM Cortex-M Processors (Embedded Coder Support Package for ARM Cortex-M Processors)

CMSIS CRL Conditions for DSP System objects to support ARM Cortex-M

Verify FIR Filter on ARM Cortex-M Processor (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM with DSP blocks.

Support Fixed-Point FIR Filter on ARM Cortex-M Processor (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM with DSP blocks.

Support ARM CMSIS C Code Generation of dsp.FIRFilter in MATLAB Function Block (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM with DSP System object™.

Verify FIR Filter on ARM Cortex-M Processor in MATLAB (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM Cortex-M processor with DSP System object™.

Parametric Audio Equalizer for ARM Cortex-M Processor (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to generate and run the optimized code of a parametric audio equalizer on ARM Cortex-M processor while adjusting equalizer response from within Simulink® environment.

Real-Time ECG QRS Detection on ARM Cortex-M Processor (Embedded Coder Support Package for ARM Cortex-M Processors)

This example shows how to generate and run optimized code for real-time QRS detection of an electrocardiogram (ECG) signal on the ARM® Cortex®-M processor.

ARM Cortex-A Processors

Supported Ne10 Library Functions for ARM Cortex-A Processors (Embedded Coder Support Package for ARM Cortex-A Processors)

Supported Ne10 library Functions

Supported DSP System Toolbox Blocks and MATLAB System Objects for Ne10 Library (Embedded Coder Support Package for ARM Cortex-A Processors)

Deployable blocks supporting Ne10 library

Ne10 Conditions for DSP System Objects to Support ARM Cortex-A Processors (Embedded Coder Support Package for ARM Cortex-A Processors)

Ne10 CRL Conditions for DSP System objects to support ARM Cortex-A

Ne10 Conditions for DSP Blocks to Support ARM Cortex-A Processors (Embedded Coder Support Package for ARM Cortex-A Processors)

CMSIS CRL Conditions for DSP blocks to support ARM Cortex-M

Verify FIR Filter on ARM Cortex-A Processor (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM processor with DSP blocks.

Support NE10 Library C Code Generation of dsp.FIRFilter in MATLAB Function Block (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM processor with DSP System object™.

Verify FIR Filter on ARM Cortex-A Processor in MATLAB (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to use the Code Replacement Library (CRL) for ARM Cortex-A processor with DSP System object™.

Short-Time Spectral Attenuation on ARM Cortex-A Processor (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to generate and run optimized code for short-time spectral attenuation on the ARM Cortex-A processor.

Parametric Audio Equalizer for ARM Cortex-A Processor (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to generate and run the code of a parametric audio equalizer on ARM® Cortex-A processor while adjusting equalizer response in the SIMULINK® environment.

Real-Time ECG QRS Detection on ARM Cortex-A Processor (Embedded Coder Support Package for ARM Cortex-A Processors)

This example shows how to generate and run optimized code for real-time QRS detection of an electrocardiogram (ECG) signal on the ARM® Cortex®-A processor.