Main Content

Migrate From STM32F4-Discovery Library to STM32F4xx Based Boards Library Mic In Block Usage

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

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

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

  2. From Configuration Parameters > Hardware Implementation, 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 Mic In block from the STM32F4-Discovery library with a Mic In 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 Frame size (samples) parameter value for the STM32F4-Discovery block corresponds to the STM32F4xx Based Boards block Audio frame size parameter value. The STM32F4xx Based Boards block Signal format parameter and Number of channels parameter support more options than the STM32F4-Discovery block.

    STM32F4xx Based Mic In and Audio Out CubeMX Configuration Options

See Also

Topics