Documentation Center

  • Trial Software
  • Product Updates

Contents

Replace Firmware on Raspberry Pi Hardware

After installing the support package for Raspberry Pi™ hardware, use Support Package Installer to replace the firmware on the Raspberry Pi hardware.

This process replaces the current firmware with a customized version of Raspbian Wheezy Linux® that can run Simulink® models, as described in the following topics:

To replace the firmware on your Raspberry Pi hardware:

  1. Open the Update firmware screen in Support Package Installer by doing one of the following:

    • Click Continue in the Install/update complete screen of Support Package Installer.

    • In a model, select Tools > Run on Target Hardware > Update firmware.

    • In a MATLAB® Command Window, enter targetupdater.

  2. Choose the Raspberry Pi (Simulink) option, and click Next.

  3. Review the information, and click Download. The firmware download starts automatically and takes several minutes.

  4. Choose your network configuration:

    • Local area or home network — Confirm that the Raspberry Pi hardware is connected to your host computer using a local area network (LAN) or home network similar to the ones displayed by Support Package Installer. Then, click Next. This option automatically applies dynamic network settings provided by a DNS service on the network.

    • Direct connection to host computer — Confirm that the Raspberry Pi hardware is connected to your host computer using a direct connection similar to the one displayed by Support Package Installer. Then, click Next. This option automatically applies static network settings based upon the network settings of the host computer.

    • Manually enter network settings — To manually configure the network settings, select this option.

    Selecting Manually enter network settings displays the following options:

    • Host name — This parameter displays an automatically-generated network host name that will be assigned to the Raspberry Pi hardware. If multiple boards are connected to the network, edit the host name to make it unique.

    • Automatically get IP address — Like Local area or home network, this option automatically applies dynamic network settings provided by a DNS service on the network.

    • Manually enter IP address — Use this option to edit the IP address, Network mask, and Default gateway settings.

      Tip   Guidelines for entering static IP settings are:

      • The IP address must be unique for each device on the network.

      • The Network mask must be the same for all devices on the network. This value is also known as Subnet mask.

      • The Default gateway is usually the same for all devices on the network.

      Start by entering ipconfig at the command line of your host computer. This command displays network settings of the Ethernet adapters on the host computer. Look for the settings of the Ethernet adapter that is connected to the target hardware.

      Suppose that the Ethernet adapter connected to the target hardware has the following values:

         IPv4 Address. . . . . . . . . . . : 192.168.1.2
         Subnet Mask . . . . . . . . . . . : 255.255.255.0
         Default Gateway . . . . . . . . . : 192.168.1.1
      

      In that case, for the target hardware:

      • Set IP address to an unused IP address, between 192.168.1.3 and 192.168.1.254

      • Set Network mask to use the same network mask value, 255.255.255.0

    For more information, see Get the Network Settings of the Raspberry Pi Hardware and Configure Network Settings on Raspberry Pi Hardware.

  5. Insert the SD card into a media card reader connected to your host computer. Windows® assigns a drive letter to the memory card.

    Click Refresh, and select the drive letter of the SD card and click Next.

      Tip   If multiple drive letters are available, identify the drive letter of the media card reader. Open the Windows Start menu, choose Computer, and review the list of Devices with Removable Storage

  6. Click Write. Support Package Installer overwrites all previous data on the memory card with the firmware. This process takes several minutes to complete.

  7. Make the connections shown in the figure, and check the LEDs labelled OK or ACT, and PWR. Then, click Next.

  8. Click Test Connection.

    Support Package Installer uses SSH to create a test connection to the board using the host name, user name, and password shown.

    • If the test fails, the software displays a message that it cannot connect to the hardware, and includes the error reported by PuTTY. You can click Back or use the targetupdater function to revisit the network settings. Also see Configure Network Settings on Raspberry Pi Hardware.

    • If the test succeeds, the software displays a "Connection successful" message on the progress bar for a few moments before closing the progress bar.

    Make a note of the host name, user name, and password so you can log in to the board later on. Then, click Next.

    If the IP address of the Raspberry Pi hardware changes, the board can send you email notification of the new IP address. For more information, see Configure Raspberry Pi Hardware to Mail IP Address Changes.

  9. Click Finish.

    If you leave Show support package examples enabled, Support Package Installer opens the example page for Raspberry Pi hardware.

  10. For hands-on experience using Simulink models with Raspberry Pi hardware, complete the examples.

    To reopen these examples later on, see Open Examples for This Support Package.

Was this topic helpful?