Main Content

Migrate From STM32F4-Discovery Library to STM32F4xx Based Boards Library Audio Out Block Usage

When you migrate from STM32F4-Discovery Audio Out block usage to using an STM32F4xx Based Boards Audio Out block usage, use this workflow.

These example steps show the process for migrating from the STM32F-Discovery library Audio Out block to the STM32F4xx Based Boards library Audio Out block:

  1. Open the Simulink model in which you are migrating block usage.

  2. From Configuration Parameters > Hardware Implementation > Hardware board, note that the Hardware board selection is STM32F4-Discovery.

    Hardware board selection is STM32F4-Discovery

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

    Hardware board selection is STM32F4xx Based

  4. In the Simulink model, replace the Audio Out block from the STM32F4-Discovery library with a Audio Out block from the STM32F4xx Based Boards library.

    Migrate the Sample rate (Hz) parameter value from Hz for the STM32F4-Discovery block to kHz for the STM32F4xx Based Boards block Audio sample frequency (in kHz) parameter value.

    The STM32F4xx Based Boards block Signal format parameter supports more options than the STM32F4-Discovery block.

    STM32F4xx Based Mic In and Audio Out CubeMX Configuration Options

See Also

Topics