Borrar filtros
Borrar filtros

How do I migrate my model from the "Simulink Coder Support Package for STMicroelectronics Nucleo Boards" to the "Embedded Coder Support Package for STMicroelectronics STM32 Processors"?

2 visualizaciones (últimos 30 días)

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 29 de Feb. de 2024
Editada: MathWorks Support Team el 29 de Feb. de 2024
To migrate your model from the Simulink Coder Nucleo package to the Embedded Coder STM32 package, you need to apply the basic steps below. Note that an Embedded Coder license is required.
The following videos are great to get started with the Embedded Coder STM32 package:
Here is the complete overview of all the required steps:
1. Install the products "Embedded Coder " and "Embedded Coder Support Package STMicroelectronics STM32 Processors" from Add-On Explorer.
2. Run the Hardware Setup by clicking "Setup Now" when the support package installation is completed, or by opening Add-on Manager and clicking the gear icon next to "Embedded Coder Support Package for STMicroelectronics STM32 Processors".
3. Go to the Hardware Implementation > Hardware Board settings in your model.
The model will currently be configured for one if the Simulink Coder Nucleo package hardware boards (STM32 Nucleo XXXXXX):
To migrate the model, select the corresponding Embedded Coder STM32 package hardware board (STM32XXXX Based):
For example, "STM32 Nucleo F401RE" or "STM32 Nucleo F411RE" can be migrated by selecting the new Hardware Board as "STM32F4xx Based". 
4. Create an STM32CubeMx-Project (.ioc) file with the desired configuration and reference it from the Hardware Implementation pane. Refer to the following documentation: Getting Started with STMicroelectronics STM32 Processor Based Boards
5. Replace any blocks from the Simulink Coder Nucleo library with the corresponding blocks from the Embedded Coder STM32 library. There will be a compilation error in case of such a mismatch. This should be intuitive, for example, the 'Digital Read' or 'Digital Write' blocks from the 'Simulink Coder Nucleo library are named 'Digital Port Read' and 'Digital Port Write' in the Embedded Coder STM32 library.

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by