Uploading error in my arduino uno board.how to fix the issue

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Ashik\AppData\Local\Arduino15\packages -hardware C:\Users\Ashik\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Ashik\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Ashik\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\Ashik\AppData\Local\Temp\arduino_build_568809 -warnings=none -build-cache C:\Users\Ashik\AppData\Local\Temp\arduino_cache_820571 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Ashik\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\Ashik\Documents\Arduino\bme280\bme280.ino

loading hardware from C:\Users\Ashik\Documents\Arduino\hardware: loading package espressif: invalid version dir C:\Users\Ashik\Documents\Arduino\hardware\espressif\esp32\arduino-esp32-master: no major version found

Error compiling for board Arduino Uno.

It appears you program or IDE settings are asking for some ESP32 (board) code.

So perhaps you have a #include referring to the ESP32 or the IDE setting is not actually set to UNO.

Hi @ashik50. The problem is you have incorrectly installed the ESP32 Arduino boards platform.

I see you have attempted to do a manual (AKA "Git") installation. That should only be done by developers and beta testers working on the platform code. Everyone else should use the far easier installation method using the Arduino IDE Boards Manager.

Please do this:

  1. Delete this folder:
     C:\Users\Ashik\Documents\Arduino\hardware\espressif
    
    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!
  2. Follow the Boards Manager installation instructions here:
    https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide
    When you get to the "Installing using PlatformIO" section of that page, STOP. You are done and you now have the ESP32 boards platform installed.

Your sketch should now compile and upload without that error.

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