Contenido principal

Install Third-Party Software for Arduino Compatible Hardware

R2026b

Using the Hardware Setup screens for the Simulink® Support Package for Arduino® Hardware, you can manually install the third-party software for these Arduino compatible hardware boards.

  • ESP32 — WROOM

  • ESP32 — WROVER

  • ESP32-S3 Series

  • Teensy 4.0

  • Teensy 4.1

  • Raspberry Pi® Pico

  • Raspberry Pi Pico W

Install Arduino Compatible ESP32 Core

Execute these commands in the MATLAB® Command window to manually install the ESP32 core.

  1. Get Arduino command line interface (CLI) root path.

    cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
    cliPath =
    
        'C:\aCLI\

  2. Change the MATLAB current directory to the Arduino CLI root path.

    cd(cliPath)

  3. Add the JSON file to the additional URLs for the Board Manager of the arduino-cli.yaml file. This file is located in the Arduino CLI root path.

    !arduino-cli config set board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_index.json --config-file "arduino-cli.yaml"

  4. Update index of ESP32 core to the latest version.

    !arduino-cli core update-index --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json --config-file "arduino-cli.yaml"

  5. Install ESP32 core.

    !arduino-cli core install esp32:esp32@3.2.1 --config-file "arduino-cli.yaml"

  6. Make sure that the ESP32 core is installed in the Arduino CLI root path.

    !arduino-cli core list --config-file "arduino-cli.yaml"
    ID                   Installed  Latest    Name 
    esp32:esp32 3.2.1    3.2.1                esp32

Install Arduino Compatible ESP32 Servo Library

Execute these commands in the MATLAB Command window to manually install the ESP32 servo library.

  1. Get Arduino command line interface (CLI) root path.

    cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
    cliPath =
    
        'C:\aCLI\

  2. Change the MATLAB current directory to the Arduino CLI root path.

    cd(cliPath)

  3. Install ESP32 servo library.

    !arduino-cli lib install ESP32Servo@3.0.9 --config-file "arduino-cli.yaml"

  4. Make sure that the ESP32 servo library is installed in the Arduino CLI root path.

    !arduino-cli lib list ESP32Servo  --config-file "arduino-cli.yaml"
    Name        Installed    Location    Description
    ESP32Servo   3.0.9         user      Generate RC servo signal on a selecte...

Install Arduino Compatible Teensy Core

Execute these commands in the MATLAB Command window to manually install the Teensy core.

  1. On MATLAB Command Window, execute this command to get Arduino command line interface (CLI) root path.

    cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
    cliPath =
    
        'C:\aCLI\

  2. Change the MATLAB current directory to the Arduino CLI root path.

    cd(cliPath)

  3. Add the JSON file to the additional URLs for the Board Manager of the arduino-cli.yaml file. This file is located in the Arduino CLI root path.

    !arduino-cli config set board_manager.additional_urls https://www.pjrc.com/teensy/package_teensy_index.json --config-file "arduino-cli.yaml"
  4. Update index of Teensy core to the latest version.

    !arduino-cli core update-index --additional-urls https://www.pjrc.com/teensy/package_teensy_index.json --config-file "arduino-cli.yaml"
  5. Install Teensy core.

    !arduino-cli core install teensy:avr@1.58.2 --config-file "arduino-cli.yaml"
  6. Make sure that the Teensy core is installed in the Arduino CLI root path.

    !arduino-cli core list --config-file "arduino-cli.yaml"
    ID                   Installed Latest   Name 
    teensy:avr@1.58.2    1.58.2             teensy

Install Arduino Compatible Pico Core

Execute these commands in the MATLAB Command window to manually install the Pico core.

  1. Get Arduino command line interface (CLI) root path.

    cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
    cliPath =
    
        'C:\aCLI\

  2. Change the MATLAB current directory to the Arduino CLI root path.

    cd(cliPath)

  3. Add the JSON file to the additional URLs for the Board Manager of the arduino-cli.yaml file. This file is located in the Arduino CLI root path.

    !arduino-cli config set board_manager.additional_urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json --config-file "arduino-cli.yaml"
  4. Update index of Pico core to the latest version.

    !arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json --config-file "arduino-cli.yaml"
  5. Install Pico core.

    !arduino-cli core install rp2040:rp2040@3.7.0 --config-file "arduino-cli.yaml"
  6. Make sure that the Pico core is installed in the Arduino CLI root path.

    !arduino-cli core list --config-file "arduino-cli.yaml"
    ID                    Installed Latest   Name 
    rp2040:rp2040@3.7.0   3.7.0              rp2040

See Also

|