Install Arduino-Compatible ESP32 Core
While installing the Simulink Support Package for Arduino Hardware as described in Install Support for Arduino Hardware, execute these commands to manually install the core for your Arduino compatible ESP32 hardware boards.
- On MATLAB® Command Window, execute this command to get Arduino command line interface (CLI) root path.
cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
- On your host terminal, change directory to the CLI path obtained from the above function call.
- 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 "C:\aCLI\arduino-cli.yaml"
- 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 "C:\aCLI\arduino-cli.yaml"
- Install ESP32 core.
- Make sure that the ESP32 core is installed.
arduino-cli core list
ID Installed Latest Name
esp32:esp32 2.0.11 2.0.11 esp32
- Navigate to the Arduino CLI root path. Observe that the esp32 folder is present in the data > packages folder.
Install Arduino-Compatible ESP32 Servo Library
While installing the Simulink Support Package for Arduino Hardware as described in Install Support for Arduino Hardware, execute these commands to manually install the ESP32 servo library for your Arduino compatible ESP32 hardware boards.
- On MATLAB Command Window, execute this command to get Arduino command line interface (CLI) root path.
cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
- On your host terminal, change directory to the CLI path obtained from the above function call.
- Install ESP32 servo library.
- Navigate to the Arduino CLI root path. Observe that the ServoESP32 folder is present in the user > libraries folder.
Install Arduino-Compatible Teensy Core
While installing the Simulink Support Package for Arduino Hardware as described in Install Support for Arduino Hardware, execute these commands to manually install the Teensy core for your Arduino compatible Teensy hardware boards.
- On MATLAB Command Window, execute this command to get Arduino command line interface (CLI) root path.
cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
- On your host terminal, change directory to the CLI path obtained from the above function call.
- 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 "C:\aCLI\arduino-cli.yaml"
- 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 "C:\aCLI\arduino-cli.yaml"
- Install Teensy core.
- Make sure that the Teensy core is installed.
arduino-cli core list
ID Installed Latest Name
- Navigate to the Arduino CLI root path. Observe that the teensy folder is present in the data > packages folder.
Install Arduino-Compatible Pico Core
While installing the Simulink Support Package for Arduino Hardware as described in Install Support for Arduino Hardware, execute these commands to manually install the Pico core for your Arduino compatible Raspberry Pi Pico and Pico W hardware boards.
- On MATLAB Command Window, execute this command to get Arduino command line interface (CLI) root path.
cliPath = codertarget.arduinobase.internal.getArduinoIDERoot
- On your host terminal, change directory to the CLI path obtained from the above function call.
- 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 "C:\aCLI\arduino-cli.yaml"
- 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 "C:\aCLI\arduino-cli.yaml"
- Install Pico core.
- Make sure that the Pico core is installed.
arduino-cli core list
ID Installed Latest Name
- Navigate to the Arduino CLI root path. Observe that the rp2040 folder is present in the data > packages folder.