Migrate From STM32F4-Discovery Library to STM32F4xx Based Boards Library Hardware Interrupt Block Usage
When you migrate from STM32F4-Discovery Hardware Interrupt block usage to using an STM32F4xx Based Boards Hardware Interrupt block usage, use this workflow.
These example steps show the process for migrating from the STM32F-Discovery library Hardware Interrupt block to the STM32F4xx Based Boards library Hardware Interrupt block:
Open the Simulink model in which you are migrating block usage.
From Configuration Parameters > Hardware Implementation, note that the Hardware board selection is STM32F4-Discovery.

Change Hardware board selection to STM32F4xx Based. After the dialog box updates to match this selection, From Target hardware resources > Build options, use the Browse or Create buttons to select an STM32CubMX project file.

In the Simulink model, replace the Hardware Interrupt block from the STM32F4-Discovery library with a Hardware Interrupt block from the STM32F4xx Based Boards library.
The Interrupt group block parameter for the STM32F4xx Based Boards block supports values External interrupts (EXT1), Analog to digital converter (ADC), Serial Peripheral Interface (SPI), Timer (TIM), Direct memory access (DMA), and Control Area Network (CAN).
See Also
Topics