Error compiling for board Arduino Uno. (Arduino IDE 1.8.19)

Hi, this is an Arduinoob. I just started using Arduino IDE recently and I am not able to do anything. First I used the latest version of Arduino IDE & Now I am using Arduino 1.8.19 (the reason is that I got suggested that I will get less bugs.) In the latest version I got the error: "Compilation error: No connection established." and now I recently got an error on Arduino 1.8.19 that says: "Error compiling for board Arduino Uno." and told me to enable verbose output in Files > Preferences so I did and now it says this: "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\subsc\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\subsc\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\subsc\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\subsc\AppData\Local\Temp\arduino_build_444308 -warnings=default -build-cache C:\Users\subsc\AppData\Local\Temp\arduino_cache_442949 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\subsc\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\subsc\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\subsc\Downloads\sketch_oct22b\sketch_oct22b.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\subsc\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\subsc\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\subsc\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\subsc\AppData\Local\Temp\arduino_build_444308 -warnings=default -build-cache C:\Users\subsc\AppData\Local\Temp\arduino_cache_442949 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\subsc\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\subsc\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\subsc\Downloads\sketch_oct22b\sketch_oct22b.ino

Using board 'uno' from platform in folder: C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5

Using core 'arduino' from platform in folder: C:\Users\subsc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5

Detecting libraries used...

Error compiling for board Arduino Uno."

The code is:

// C++ code
//
void setup()
{
  pinMode(13, OUTPUT);
}

void loop()
{
  digitalWrite(13, HIGH);
  delay(1000); // Delay a little bit to improve simulation performance
}

I hope someone can help me out!

Welcome to the forum

Not unless you post your code

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

You probably did not connect the board or did not select the correct port when trying to upload. If you just did a verify (compile), that error should not happen.

I can't help you with the compile issue in 1.8.19.

In any case, because you never turn the LED off, all it will do is to repeatedly turn on the LED. So it will look like it is always on. To get your LED to blink, add an other two lines at the end of the loop.

The first will turn the LED off, that is write LOW to the pin.
The second is to repeat the delay so you can see it being off.

Yeah I know, The default code in my Arduino Uno makes it so the LED Blinks and I want it to change for something different. But thanks for telling me what to do to make it blink :smiley:

I even confirmed by opening Device Manager that my board is in what COM Port. After that I selected the port so that should not be the reason.

Maybe the instructions in post #3 can solve the compiler issue: Error compiling for board Arduino Uno.

NEW UPDATE
I can code now and change the settings but it only works once after I open the app, let me explain.

When I open the app and upload without verifying it works! but if I do it again then it displays the same error. I hope someone can help.

I tried it, sadly that doesn't work. :frowning:

In that case I can't help further, sorry.

I had a similar issue with the same error message. In my case the Sketch was located under several sub folders and not, how it should be, direktly in the "Sketchbook location". The location can be configured in the preferenceses under Settings (1st entry).
In my case I was able to solve the issue by moving the folder to the correct position.

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