As I experienced erratic compilation & download on Ubuntu 22.04 with IDE 1.8.19 I install IDE 2.0.4 . Loading sketches is Ok but boards manager does not show any ESP32 type boards, mine is ESP32 Wrover. Trying compilation I have error
Platform 'esp32:esp32' not found: platform not installed
Compilation error: Platform 'esp32:esp32' not found: platform not installed
Hi @dubser123. I'm going to ask you to post some additional information that might help us to identify the problem.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
Select File > Preferences from the Arduino IDE menus.
Check the box next to "Show verbose output during: ☐ compilation".
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to fail.
You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the Reply button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
Open a forum reply here by clicking the Reply button.
Click the "Upload" icon () on the post composer toolbar:
Select the .txt file you saved.
Click the Open button.
Click the Reply button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
I'm not sure about that. If you don't have an ESP32 board selected, then I don't understand how Arduino IDE can know you are compiling for an ESP32 board, but the error message clearly shows it does know that.
Anyway, if this is really the problem, it should be easy enough to resolve. I'll provide instructions you can follow to install the ESP32 boards platform:
Copy the URL shown under the "Stable release link" section of that page.
Select File > Preferences 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.
You are welcome. I'm glad the boards are available in the IDE now.
Since it is unrelated to the original subject of this topic, please open a new forum topic for that question. This will ensure it gets the attention of the forum helpers knowledgeable about the subject of your new question.