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".
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.