Skip to content

Embedded development environment setup

Arduino IDE

After installing Arduino IDE from here, open it.

Go to File > Preferences and look for Additional boards manager URLs. Paste the following URL in the text box: https://dl.espressif.com/dl/package_esp32_index.json. If there’s already another board installed (there’s already another URL in the text box), you can separate the URLs using ;.

TextBox

Now go out of preferences, and look towards the navigation bar on the left. Here, go to Boards Manager and look for ESP32 by Espressif Systems and install it. After installing, it should look like this (version may differ):

Installed

Next, go here and download and install the USB driver for your platform.

Now you open the repository root file from File > Open and start coding/compiling.

Visual Studio Code

After installing Visual Studio Code from here and open it.

In the navigation bar on the left, go to the Extensions tab. Here look for the Arduino extension by Microsoft. After installing, this should be under your installed tab.

Installed extension

After installing the extension, go to your user settings. You can get here by pressing CTRL+P and searching for Preferences: open user settings(JSON). Add the JSON below to your user settings:

"arduino.enableUSBDetection": true,
"arduino.additionalUrls": [
    "https://dl.espressif.com/dl/package_esp32_index.json"
],
"arduino.useArduinoCli": true,

Next download and follow the installation instructions from here to install the Arduino CLI.

Next, go here to download and install the required USB driver for your platform.

Open the project by navigating to File > Open Folder, and select the root folder of the project.

After completing the previous steps, select the main.ino sketch by pressing CTRL+P and searching for/clicking on Arduino: select sketch. Select embedded/src/main/main.ino in the dropdown that comes up.

When you have selected the sketch, press CTRL+P again and search for/click on Arduino: board manager. Once the board manager has opened up, search for the esp32 board and install it. Vscode board manager example

After the new board is installed, press CTRL+P again and search for/click on Arduino: board config. There, choose the Esp32 Dev Module (esp32).

Now open the repository root file and start coding/compiling.

Notice

It seems one of our members was having trouble with a 2nd c/cpp config in the /.vscode/c_cpp_properties.json file. If you’re having trouble, remove all config objects that dont have the name Arduino.


Last update: June 8, 2023