Main Content

Model Configuration Parameters for STMicroelectronics STM32F4-Discovery Board

Hardware Implementation Pane Overview

Default Hardware Implementation Pane

Configure hardware board to run Simulink® models.

  1. In the Simulink Editor, select Simulation > Model Configuration Parameters.

  2. In the Configuration Parameter dialog box, click Hardware Implementation.

  3. Set the Hardware board parameter to STM32F4-Discovery.

  4. The parameter values under Hardware board settings are automatically populated to their default values.

    You can optionally adjust these parameters for your particular use case.

  5. Click Apply to apply the changes.

For more information on selecting a hardware support package and general configuration settings, see Hardware Implementation Pane.

Operating system options

ParameterDescriptionDefault Value

Operating system

Sets the operating system options to run your model on the selected target hardware.

Baremetal

Scheduler options

ParameterDescriptionDefault Value

Base rate trigger

Sets the static priority of the base rate task in the operating system.

SysTick Scheduler

Build options

ParameterDescriptionDefault Value

Build action

Defines how Embedded Coder® responds when you build your model.

Build, load, and run

Build for use with bootloader

Defines how to generate a build to use with bootloader.

off

Bootloader interface

Sets the communication interface used by the bootloader.

Serial (USART2)

Serial port

Sets the serial port used by the bootloader.

COM1

Clocking

ParameterDescriptionDefault Value

CPU Clock (MHz)

The CPU clock frequency in MHz.

168

PIL

ParameterDescriptionDefault Value

PIL communication interface

Sets the interface used for PIL communication.

ST-LINK

Serial port

Sets the serial port for PIL communication.

COM1

ADC Common

ParameterDescriptionDefault Value

ADC Prescaler

Sets the PCLK divider.

PCLK2 divided by 2

Delay between two sampling phases

Sets the time delay between two sampling phases.

5 * T_ADCCLK

Enable temperature sensor and V_Refint channel

Enables the temperature sensor and the V_Refint channel.

off

Enable V_BAT channel

Enables the V_BAT channel.

off

ADC modules synchronization

Defines how three ADCs perform the conversion.

Single mode: All ADCs are independent

Multi ADC mode selection

Sets the multi-ADC mode.

Regular simultaneous and injected simultaneous

ADC 1, ADC 2, and ADC 3

ParameterDescriptionDefault Value

Conversion resolution

Sets the resolution for conversion.

12

Select data alignment

Sets the data alignment after conversion.

Right alignment

Enable watchdog on regular channels

Enables the watchdog on regular channels.

off

Enable watchdog on injected channels

Enables the watchdog on injected channels.

off

Watchdog on channel

Sets channel for watchdog.

All channels

Watchdog lower threshold

Sets lower threshold of the watchdog.

0

Watchdog higher threshold

Sets higher threshold of the watchdog.

4095

Channel # sampling time in ADCCLK cycles

Sets the sampling time in ADCCLK cycles for channel numbers from 1 to 18.

3

GPIO A, GPIO B, GPIO C, GPIO D, GPIO E, GPIO F, GPIO G, GPIO H, and GPIO I

ParameterDescriptionDefault Value

Show GPIO# settings for

Sets the pin number to display the GPIO settings.

Pin 0

Select output type for Pin #

Sets the output type for pins 0–15.

Push pull mode

Select output speed for Pin #

Sets the output speed for pins 0–15.

Low speed

Select pull mode for Pin #

Sets the pull mode for pins 0–15.

No pull-up or pull-down

External Mode

ParameterDescriptionDefault Value

Communication interface

Sets the transport layer used to exchange data between host and hardware.

Serial

Serial port

Sets the Serial port on the hardware board.

COM1

Verbose

Sets to view external mode execution progress and updates.

off