主要内容

Hardware Setup for Raspberry Pi Blockset

Raspberry Pi® hardware requires additional configuration and setup steps to connect to MATLAB® and Simulink®.

The hardware setup interface for Raspberry Pi Blockset guides you through the following steps:

  • Install third-party software, CMSIS and CMSIS-DSP, on the host machine to support advanced signal processing and code generation workflows.

  • Establish connection with your Raspberry Pi hardware.

  • Install required libraries and packages on the Raspberry Pi operating system based on your application needs for MATLAB and Simulink. For more information, see Modularize Installation of Third-Party Packages and Libraries for Raspberry Pi Hardware.

  • Configure Raspberry Pi peripherals such as I2C, SPI, UART, Camera, CAN to enable hardware interfacing.

Open Hardware Setup Wizard

Open the Raspberry Pi Blockset hardware setup interface using one of the following methods.

Using MATLAB Command Window

This command opens the Hardware Setup wizard for Raspberry Pi Blockset.

raspisetup

Raspberry Pi Blockset First Screen for Hardware Setup

Follow the instructions on each page of the wizard to complete configuring your hardware.

Using MATLAB Add-On Manager

  1. On the Home tab of your MATLAB session, in the Environment section, select Add-Ons > Manage Add-Ons.

  2. In the Installed Add-Ons list, click the Options button next to Raspberry Pi Blockset, and select Setup.

    Raspberry Pi Blockset Setup through Add-Ons

    Alternatively, from the Add-ons panel, click Manage to open Add-On Manager window. Click the gear icon to launch the Hardware Setup wizard for Raspberry Pi Blockset.

    Raspberry Pi Blockset Add-On Manager

Using Simulink Toolstrip

  1. Open any model which is configured for Raspberry Pi hardware board.

  2. In the toolstrip, on the Hardware tab, go to Hardware Board and select Setup Hardware.

    Raspberry Pi Blockset Simulink Toolstrip

    This selection opens the Hardware Setup wizard for Raspberry Pi Blockset.

Hardware Setup for Third-Party Tools

The hardware setup for Raspberry Pi Blockset installs and configures these essential third-party tools on your host computer to support advanced processing and code generation workflows.

ToolPurpose

Common microcontroller software interface standard (CMSIS)

Standardized interface for ARM®-based microcontrollers to improve software portability.

Common microcontroller software interface standard - Digital Signal Processing (CMSIS-DSP)

Optimized digital signal processing functions for real-time embedded applications.

Note

Your host computer must be connected to the internet for this step of the setup process.

Update Raspberry Pi Blockset

To update the blockset, in the Home tab of your MATLAB session, in the Resources section, select Help > Check for Updates.

See Also

Topics