Error loading hardware folder

I always get this error, when I run the blink programm on my Arduino.
Can someone help me?

Write 84280 bytes to flash (21 pages)
[==============================] 100% (21/21 pages)
Done in 3.493 seconds
java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionInstaller.findAndExecutePreUninstallScriptIfAny(ContributionInstaller.java:196)
at cc.arduino.contributions.packages.ContributionInstaller.remove(ContributionInstaller.java:242)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:170)
... 1 more
Could not find boards.txt in C:\Program Files (x86)\Arduino\hardware\espressif\esp32. Is it pre-1.5?
WARNING: Error loading hardware folder C:\Program Files (x86)\Arduino\hardware\espressif
No valid hardware definitions found in folder espressif.

Hi @srdjan9999. As the message indicates, you have an incomplete boards platform installation at the following path:

Please delete the espressif folder to fix the problem.

:warning: Please be very careful when deleting things from your computer. When in doubt, back up!

You should never install anything in the Arduino IDE installation folder (C:\Program Files (x86)\Arduino). You might find some tutorials that tell you to do that, but they are either very outdated or else written by people who don't know what they are talking about. The main reason you should not do that is because you will lose all your modifications to the Arduino IDE installation every time you update to a new version of the IDE. This is why the Arduino IDE developers have provided the capability to install additions such as the ESP32 boards platform to a separate location on your computer where they will persist through IDE updates.

It is possible to do a manual installation the ESP32 boards platform, as documented here (note the platform is installed under the sketchbook folder when following those instructions). However, manual installation should only be done by those who are contributing to the ESP32 boards platform project by doing development or beta testing work.

If you only want to use the ESP32 boards platform for your projects, then you should install it using the Arduino IDE Boards Manager, following these instructions:

https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide


Please let me know if you have any questions or problems while following those instructions.

This helped me. But now I get this message:
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description

Does this interrupt anything?

Cuz my LM75 sensor wont give me a output on the serial monitor.

No. This is normal and expected. You can safely ignore this message.

That is definitely unrelated to the "Error loading hardware folder" warning and "Cannot locate "flash" and "boot" memories in description" messages you were getting. I recommend making a new dedicated forum topic to request assistance with the problem of the LM75 sensor. That will make it more likely the forum helpers most qualified on that subject (which is distinctly different from the original subject of this topic) will see your post and provide assistance.

1 Like

Thanks a lot!

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.