Esp32 connot compile

i recently installed some drivers for my esp32
but it still wont work it says
Error compiling for board ESP32 Dev Module.
i set the board in the ide

Hi @codeguyguyguy. I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information about the problem.


Please do this:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to "Show verbose output during: > compilation" in the "Preferences" dialog.
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. After the compilation fails you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages. Click that button.
  6. Open a forum reply here by clicking the Reply button.
  7. Click the <CODE/> 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.
    Code tags icon on toolbar
  8. Press Ctrl+V.
    This will paste the compilation output into the code block.
  9. Move the cursor outside of the code tags before you add any additional text to your reply.
  10. Click the Reply button to post the output.

the error message is beyond the character limit its mostly just file names

I apologize for the inconvenience imposed by the forum's post length limit. 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:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the Reply button.
  5. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    A dialog will open.
  6. In the dialog, select the .txt file you saved.
  7. Click the Open button.
  8. 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 cant because im a new user

just realised it says none on com 4 i think its just because its not detecting it

Sorry about that. I actually went to check whether you had those permissions but when I saw that you joined the forum years ago I assumed you would have them.

You have now been promoted to the next "trust level" with the forum software. You should now be able to make attachments. Please try again.

erroride.txt (979.5 KB)

Great. This is the relevant part of the output:

I see there is a report of the same problem here:

The person who experienced that error reported that it was fixed once they updated the version of their ESP32 boards platform installation. The 2.0.4 version you are using is significantly outdated. Unless you are using that 2.0.4 version for some specific reason, I recommend you to update to the latest version. I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus.
    A "Boards Manager" dialog will appear.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "esp32 by Espressif Systems" entry. Click on it.
    Some buttons will appear on the entry.
  4. Click the Update button on the "esp32 by Espressif Systems" entry.
  5. Wait for the update to finish.
  6. Verify that the "esp32 by Espressif Systems" entry now shows that version 2.0.9 is installed.
  7. Click the Close button at the bottom of the "Boards Manager" dialog.

Now try compiling your sketch again. Hopefully this time the error will not longer occur.

its at 1.06 but i cant update
i also tried uninstalling esp32 and reinstalling

The reason only 1.0.6 is 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.

I'll provide instructions you can follow to update your IDE configuration and install the latest version:

  1. Open the web page containing Espressif's official installation instructions for the ESP32 boards platform:
    https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide
  2. Copy the URL shown under the "Stable release link" section of that page.
  3. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  4. If there is already a URL for the ESP32 boards platform in the "Additional Boards Manager URLs" field in the "Preferences" dialog, delete it.
  5. 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 (,).
  6. Click the OK button in the "Preferences" dialog.
  7. Select Tools > Board > Boards Manager from the Arduino IDE menus.
    A "Boards Manager" dialog will appear.
  8. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  9. Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
  10. Click the Update button at the bottom of the entry.
  11. Wait for the update to finish.
  12. Verify that the "esp32 by Espressif Systems" entry now shows that version 2.0.9 is installed.
  13. Click the Close button in the "Boards Manager" dialog.

its working thanks

1 Like

The latest version is 2.0.9 with which I encountered problem with my ESP32S in IDE 1.8.19. Then I installed version 2.0.8 and everything was alright.

the error cameback after reprogramming it about 4 times

exit status 1
Error compiling for board ESP32 Dev Module.
last time i fixed it by updating the board i tried uninstaling and installing a older versions it came back after reprogramed about 4 times

More details please

  • Is that the full error message copied from the IDE ?
  • Which sketch are you trying to compile
  • which OS are you using ?
  • exactly which version of IDE are you using ?
  • which version of the ESP32 board files are you using ?
1 Like

the first 2 lines is the full error message
i ve tried 4 different example sketches for esp32
windows 10
arduino ide
ESP32 wroom 32 (the first one released)

it just randomly started working again i have heard of other people with an identicle board experiencing changing compiling results

It might help if you posted the code and errors per the forum guidelines. What are you building. If it has more than one external device post an annotated schematic.

I have merged your cross-posts @codeguyguyguy.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like