Main Content

Hardware Mapping

R2026b

Map memory, tasks, and peripherals in a model to hardware board configurations

Since R2022b

Description

The Hardware Mapping tool allows you to configure memory, software tasks, and peripherals on the selected hardware board.

In this tool, you can map the tasks in your software model to the available event sources and interrupts:

  • Manually select the task in Mapping Browser > Tasks > task name. Select the desired event or interrupt source. Click the Apply Changes button in the toolstrip.

  • Automatically by clicking the Auto Map button on the toolstrip.

The sources of events or interrupts depend on the choice of hardware board and peripherals available in the model.

In this tool, you can configure peripherals by setting hardware specific parameters. To set the peripheral, select the peripheral in Mapping Browser > Peripherals > Peripheral group name > Peripheral block name. In the Peripheral block name pane, choose the appropriate settings to apply to the hardware peripheral when deployed to the hardware board. The available parameters depend on the selected hardware board for the model and the peripheral.

You can also configure the memory map of your application. To edit or reset the memory map, select an entry from the Mapping Browser pane. Then:

  • Click Auto Map to automatically map the memory locations.

  • Edit the offset of memory-mapped items and click Apply Changes.

  • To reset the memory map, click Reset Map.

Open the Hardware Mapping

  • Simulink® Toolstrip: On the System On Chip tab, in the Prepare section, click Hardware Mapping.

  • A screen within the SoC Builder app

Parameters

expand all

Each section represents a block pair that supports peripheral functionality in the Hardware Mapping app, such as the Video Capture and Video Capture Interface block pair.

Video Capture

This parameter specifies the VLS4 video device to use in the generated code as a Linux® hardware path.

Video Display

This parameter specifies the title of the video viewer shown on the screen of a connected monitor.

Audio Capture

This parameter specifies the ALSA hardware card, X, and device, Y, mapping on the embedded Linux device.

This parameter specifies the audio sampling frequency of the device managed by the ALSA driver. The selected value must be supported by the embedded Linux peripheral device.

Audio Playback

This parameter specifies the ALSA hardware card, X, and device, Y, mapping on the embedded Linux device.

This parameter specifies the audio sampling frequency of the device managed by the ALSA driver. The selected value must be supported by the peripheral device and the ALSA driver on your embedded Linux device.

Version History

Introduced in R2022b