Contenuto principale

Model Configuration Parameters

Model configuration parameters control model behaviour, simulation, code optimizations, interfaces, code style, build options, and other aspects of the generated code. When you create a new model, it contains the default configuration set that specifies the default values for the model configuration parameters. You can view and update the configuration parameters by following these steps.

  1. In the Simulink® Editor, press Ctrl+E or click Modeling > Model Settings to open Configuration Parameters dialog box.

    Hardware Settings

  2. In the Configuration Parameter dialog box, click Hardware Implementationto view the corresponding parameters.

  3. Set the Hardware board parameter to Infineon AURIX TC3x.

  4. Simulink automatically populates the parameter values under Hardware board settings to their default values. You can optionally adjust these parameters for your particular use case.

    Configuration Parameters window

  5. To apply the changes, click Apply.

Hardware board settings

ParameterDescriptionDefault Value
Device SeriesDevice series for the selected hardware board.

TC37x

Processing UnitProcessing unit to build and deploy the application model.TriCore0

Simulation settings

ParameterDescriptionDefault Value
Set random number generator seed

Set the random number generator seed.

off

Seed value

Specify the seed value for random number generator.

default
Cache input data at task start

Cache the input data at the start of a task.

off

Project folder

Select project folder to store generated code and executables

soc_prj

Task profiling on processor

ParameterDescriptionDefault Value
Show in SDI

Show the task execution data collected on hardware in the Simulation Data Inspector application.

off
Save to file

Save task execution data to a file

off
Overwrite fileOverwrite last task execution data fileoff

Target hardware resources

Device

ParameterDescriptionDefault Value
BoardHardware board of the selected device seriesInfineon AURIX TC375 Lite Kit
StepDisplays the device step for the selected hardware board.

A

Package typeDisplays the device packaging type for the selected hardware.

LQFP

Package class

Displays the number of programmable pins for the selected hardware board/microcontrollers.

176

Pre-load TriCore0 with custom executable which enables current processing unitSelect to pre-load TriCore 0 with custom executable file to enable current processing unit.off
Executable file for TriCore0The path to the custom executable file for TriCore 0 processing unit$(AURIX_TC3XX_SHARED_ROOT_DIR)\TriCore0Executables\TC37x\TriCore0ExecutableToEnableTriCore#.hex

Build Options

ParameterDescriptionDefault Value
Build action

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

Build, load, and run

Disable parallel build

Select to compile the generated code and driver source codes in parallel order for faster build and deployment speed.

off
Enable force rebuild of static library

Select to force rebuild of the static driver library.

off

Startup options

ParameterDescriptionDefault Value
Use custom startupSelect to execute custom initialization code when the microcontroller boots up

off

Startup code locationThe file path for the initialization code when the microcontroller boots up

iLLD\TC3\v1.20.0\TC3-v1.20.0\Src\BaseSw\Infra\Ssw\TC3xx\Tricore

Use custom linker file

Indicates that the custom linker command file must be used during the build action.

off

Linker file

The path to the memory description file required during linking.

$(AURIX_TC3XX_SHARED_ROOT_DIR)\lib\tasking\tc33x\Lcf_Tasking_Tricore_Tc0.lsl
Boot FromOption to specify if the application has to load to the RAM or ROM.

ROM

Enable program cacheSelect the program cache.

on

Enable data cacheSelect the data cache.

off

Enable TriCore#Select the TriCore #.

off

Clocking

ParameterDescriptionDefault Value
External oscillator (MHz)

Oscillator frequency used in the processor.

20

CPU clock (MHz)

CPU clock frequency of the microcontrollers on the target hardware

300

Connectivity

ParameterDescriptionDefault Value
Connectivity interface

Select the type of communication interface for simulation.

Serial (ASCLIN0)
Serial port in MATLAB preferences

Select the serial communication interface module.

empty
Baud rateSelect the baud rate of the serial communication port.921600
Tx PinSelect the pin number for data transmission using serial communication portP14_0
Rx PinSelect the pin number for data reception using serial communication port.P14_1

External mode

ParameterDescriptionDefault Value
Communication interface

Select the transport layer External mode uses to exchange data between the host computer and the target hardware

Serial
Verbose

Select Verbose to view the External mode execution progress and updates.

off

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