Hi, I am quite new to Arduino IDE and need your help please.
I installed Arduino IDE and also ESP32 package from espressif (https://dl.espressif.com/dl/package_esp32_index.json).
For my NodeMCU32 (ESP32) I want to create a sketch but I don't know which package is currently used if I compile and upload the sketch. The board manager shows this:
As you can see there is a choice of two. 'Arduino ESP32 Boards' V2.0.13 is installed and 'esp32' (V1.0.6) as well.
But which one is used now if I compile/upload?
Can I select somewhere what packages should be used?
I moved your topic to an appropriate forum category @mr_burns.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
The "esp32" platform (labeled as "esp32 by Espressif Systems" in Boards Manager) is used.
Yes, if you select the board from the Tools > Board menu in Arduino IDE. There is a submenu under Tools > Board for each of the installed boards platforms. So if you select Tools > Board > esp32 > NodeMCU-32S, then you will know that the "esp32" platform is used.
If you want to know the platform of the board that is currently selected, open the Tools > Board menu and then look for a black dot to the left of one of the menu items. That is the indicator that the currently selected board is under that submenu (and thus from that platform).
I see you are using an extremely outdated version of the "esp32" boards platform. If you are intentionally using that version 1.0.6 for a specific reason, that's perfectly fine, but I mention it because many users are not aware that newer updates are available.
The reason you might not realize new versions are available is that Espressif changed the URL you use in your "Additional Boards Manager URLs" preference to get updates of the platform. They stopped maintaining the old URL so you don't get any updates past 1.0.6 when using that URL.
In case you would like to update to the modern version of the ESP32 boards platform, I'll provide instructions:
Copy the URL shown under the "Stable release link" section of that page.
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
If there is already a URL for the ESP32 boards platform in the "Additional Boards Manager URLs" field of the "Preferences" dialog, delete it.
Add the URL you copied from the ESP32 boards platform installation instructions to the "Additional Boards Manager URLs" field. ⓘ If there are other URLs in the field, separate them with commas (,).
Click the "OK" button on the "Preferences" dialog.
You will now see a "Downloading index: ..." notification at the bottom right corner of the IDE window. Wait for that notification to close.
Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
Click the "INSTALL" button at the bottom of the entry.