Sub topic 5
Installing Board Packages with the Boards Manager
Assume that you have installed Arduino IDE 2.x and can open it. You also have an Arduino board and a USB data cable. This chapter explains how the IDE obtains the files needed to compile and upload code for a specific board.
What a board package provides
A board package is a collection of software definitions and tools for a family of boards. It usually contains:
- Board definitions, such as the available processor and memory settings.
- A compiler toolchain that converts your sketch into machine code.
- Upload tools that transfer the compiled program to the board.
- Startup code and configuration files for the board's microcontroller.
- Board-specific options, such as CPU speed or USB behavior.
The Arduino IDE cannot compile every board using one built-in configuration. It uses the selected board package to know how to build and upload the sketch.
For example, an Arduino Uno uses the Arduino AVR Boards package. Many newer or third-party boards use different packages, such as packages for ESP32 or RP2040 boards.
Open the Boards Manager
- Start Arduino IDE.
- Open the Boards Manager from the left sidebar. Its icon looks like a small board.
- You can also open it from Tools > Board > Boards Manager.
- Type the board family or package name into the search field.
- Select the package published by the expected vendor.
- Choose a version if the IDE provides a version list.
- Select Install and wait for the installation to finish.
The package becomes available in the board-selection menus after installation. Installing a package does not select a board automatically. You still need to choose the exact board model later.
| Board you have | Package commonly used | Example board selection |
|---|---|---|
| Arduino Uno | Arduino AVR Boards | Arduino Uno |
| Arduino Nano | Arduino AVR Boards | Arduino Nano |
| ESP32 development board | esp32 by Espressif Systems | ESP32 Dev Module |
The package name and publisher matter. Several packages can contain similar words, so confirm that the package matches the board manufacturer's documentation.
Add a third-party package index
The Boards Manager normally searches Arduino's built-in package index. Some vendors provide an additional index URL for their boards.
To add one:
- Open File > Preferences on Windows or Linux. On macOS, open Arduino IDE > Settings.
- Find Additional Boards Manager URLs.
- Paste the URL supplied by the board vendor.
- If other URLs are already present, keep them and separate each URL as the field describes.
- Save the settings.
- Reopen Boards Manager and search for the vendor's package.
Only add URLs from a vendor or another source you trust. The index tells the IDE where to find package metadata and downloads. A package can install executable tools, so an untrusted source can create a security risk.
Choose a package version
The newest package version is usually the best starting point, but version changes can affect compiler behavior, board settings, or library compatibility. If an existing project requires a particular version, install that version instead.
Keep a note of:
- The package name and publisher.
- The installed version.
- The exact board model selected.
- Any additional board index URL.
This information makes it easier to reproduce a project on another computer or diagnose a build that changed after an update.
Common errors
If your board does not appear in Boards Manager, check the manufacturer's instructions for the package name and additional index URL. A failed download can result from a proxy, firewall, unavailable server, or incomplete installation. Retry after checking the network connection.
If the package installs but compilation fails, confirm that you selected the correct board family. A package for an ESP32 board cannot configure an Uno, and choosing a similar-looking model can select incompatible processor settings.
Exercise
You have an ESP32 board, but searching Boards Manager for “ESP32” shows no package. What should you check first?
Show answer
Check the board vendor's documentation for the correct Additional Boards Manager URL. Add that URL in Preferences, save it, and search Boards Manager again. Then confirm the package publisher before installing it.