How do I generate C code using Embedded Coder for a STM32 processor without hardware support in Simulink R2023b?

25 views (last 30 days)

I have an Arduino Portenta H7 which has a STM32H747 processor, but the Arduino Portenta H7 is not supported according to the Hardware Support Package's list of Supported Hardware.
However, I also see that the Embedded Coder Support Package for STMicroelectronics STM32 Processors supports "STM32H7xx" processors, which should include the STM32H747.
First, what does it mean for the Arduino Portenta H7 to not be included on the Hardware Support Package's support list but for the processor to be supported as part of the Embedded Coder Support Package for STMicroelectronics STM32 Processors?

Second, how can I generate C code from my Simulink model for the Arduino Portenta H7?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Aug 2025
The Arduino Portenta H7 not being listed in the Hardware Support Package's list means that you may not be able to benefit from automated C code generation, building, and implementation for the specific hardware board. However, because the board's processor is supported, you can still export your Simulink model to the supported STM32 processor and accomplish the desired effect through a series of manual steps.
Please see the following "Deploy C Code to STM32 Nucleo Using Embedded Coder" video series which compares the process of using automated tooling versus the custom approach required of unsupported boards that use supported STM processors.
The linked video series features a 20-minute video, "Algorithm Export Demonstration", that shows step-by-step how to export your algorithm to a supported STM32 processor such as the Portenta H7's STM32H747. In short, a board which is not supported but which uses a supported STM32 processor requires that the user generate the C code and implement the ST Toolchain themself.
For more information on STM32 support, please see the following resources:

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!