
In the Simulink® Editor, select Simulation > Model Configuration Parameters.
In the Configuration Parameter dialog box, click Hardware Implementation.
Set the Hardware board parameter to one of the
Nucleo boards, for eg.STM32 Nucleo F302R8.
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.
Click Apply to apply the changes.
For more information on selecting a hardware support package and general configuration settings, see Hardware Implementation Pane.
| Parameter | Description |
|---|---|
Defines how Embedded Coder® responds when you build your model. | |
| The option to copy the generated output bin file automatically or manually to a drive. | |
| The drive on which to copy the generated output bin file manually. |
| Parameter | Description |
|---|---|
The CPU clock frequency in MHz. |
| Parameter | Description |
|---|---|
| Defines the rate of data communication between the peripherals connected by the I2C bus. | |
| Serial clock (SCL) pin | Sets serial clock (SCL) pin. |
| Serial data (SDA) pin | Sets serial data (SDA) pin. |
| Parameter | Description |
|---|---|
| Master output slave input (MOSI) pin | The pin that connects the master output to the slave input. |
| Master input slave input (MISO) pin | The pin that connects the slave output to the master input. |
| Clock (SCK) pin | The clock pin for SPI communication. |
| Parameter | Description |
|---|---|
| Baudrate (in Hz) | Defines how fast the data is sent over a serial line. |
| Receive pin | Sets the receiving pin of UART. |
| Transmit pin | Sets the transmitting pin of UART. |
| Data bits length | Sets the number of data bits to transmit. |
| Parity | Sets the type of parity checking to identify low-level errors. |
| Stop bits | Sets the number of stop bits to indicate end of a packet. |
| Parameter | Description |
|---|---|
| The serial interface used for PIL communication | |
| Serial port | The serial port for PIL communication |
Build Options
| Parameter | Description |
|---|---|
| Communication interface | The option is used for running your model in External mode with serial communication |
| Serial port | The serial port used by the target hardware |
| Verbose | The option to view the External mode execution progress and the updates in Diagnostic Viewer or MATLAB Command Window |
| Baudrate | Specify the baudrate for external mode communication. |
| Logging buffer size (in bytes) | Specify the logging buffer size. |
| Use a dedicated timer to improve time stamp accuracy | Enable the parameter to use a dedicated timer to improve the time stamp accuracy. |
| Parameter | Description |
|---|---|
| Enable Connected IO | Option to enable Connected I/O during Normal mode simulation |
| Serial port | The serial port used by the target hardware |
| Parameter | Description |
|---|---|
| Baudrate | Set the baudrate of the CAN bus. |
| Mode | Set operating mode for CAN interface. |
| Receive pin | Set the receiving pin of CAN. |
| Transmit pin | Set the transmitting pin of CAN. |