Main Content

Install Support for Raspberry Pi Hardware

Add support for Raspberry Pi™ hardware to the MATLAB®产品通过安装MATLAB支持包f金宝appor Raspberry Pi Hardware.

This process installs the following items on your host computer:

  • Third-party software development tools

  • MATLAB commands

  • Examples

This process also installs a customized version of Raspbian Linux®on the Raspberry Pi hardware.

When you complete this installation, you can use MATLAB commands to control and retrieve data from Raspberry Pi hardware and peripherals.

The Raspberry Pi hardware is also referred to as aboardor astarget hardware.

Raspberry PiOperating System Requirements

You can set up your Raspberry Pi hardware using either the MathWorks®Raspbian image or by customizing the Raspbian Linux operating system on your Raspberry Pi, namely Stretch or Buster. The MathWorks Raspbian image is composed of the latest Raspbian image with all the libraries and packages required to make the image compatible with MATLAB and Simulink®.

If you customize the operating system running on your Raspberry Pi, the custom image should be composed of all the libraries and packages required to make the image compatible with MATLAB and Simulink. If you choose to customize your Raspberry Pi OS, theReview Required Packages and Librariesscreen on the Raspberry Pi Hardware Setup window displays a complete list of libraries and packages that you need to install on your Raspberry Pi hardware.

Install, Update, or Uninstall Support Package

Install Support Package

  1. On the MATLABHometab, in theEnvironmentsection, selectAdd-Ons>Get Hardware Support Packages.

  2. In the Add-On Explorer window, click the support package and then clickInstall.

Update Support Package

On the MATLABHometab, in theEnvironmentsection, selectHelp>Check for Updates.

Uninstall Support Package

  1. On the MATLABHometab, in theEnvironmentsection, clickAdd-Ons>Manage Add-Ons.

  2. In theAdd-On Manager窗口中,找到并单击中rt package, and then clickUninstall.

Hardware Setup

Hardware boards and devices supported by MathWorks require additional configuration and setup steps to connect to MATLAB and Simulink. Each support package provides a hardware setup process that guides you through registering, configuring, and connecting to your hardware board.

If the support package is already installed, you can start the hardware setup by opening the Add-On Manager.

In the Add-On Manager, start the hardware setup process by clicking theSetupbutton,.

After starting, the Hardware Setup window provides instructions for configuring the support package to work with your hardware.

Follow the instructions on each page of the Hardware Setup window. When the hardware setup process completes, you can open the examples to get familiar with the product and its features.