fatal error encountered on Arduino installation

Good day! I am installing arduino IDE v2.0.4 in my laptop. It supposed to be a very simple installation process but I bet I missed out some crucial step. Upon installation completed I tried to compile a 'blink' sketch example but it shows the compilation error with the following message:

In file included from C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28:0, from C:\Users\User\AppData\Local\Temp\arduino\sketches\6940E8C446A6FD7CF1937A0A46DE8282\sketch\Blink.ino.cpp:1: c:\users\user\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90:10: fatal error: avr/io.h: No such file or directory #include <avr/io.h> ^~~~~~~~~~ compilation terminated.

exit status 1

Compilation error: exit status 1

May someone enlighten me which part I have done wrongly? I was selecting 'Arduino UNO' as the board used. I am using window 11.

Thanks in advance.

Hello @thenkhou,

Please can you explain this:

It seems you posted the same question on Stack Overflow. By posting the same question on 2 different forums you are wasting the time of the volunteers on at least one of them. Suppose you get a satisfactory answer on Stack Overflow, the people here probably won't know so they will be wasting their time helping you.

Thanks.

Hi @PerryBebbington, I m sorry that I thought these two forums are separate entities. I posted here because I haven't get my problem resolved and I was thinking to reach more help in this way.

Wasting people time is never my intention and to me is a lousy move. I apologize if i have wasted your time.

1 Like

Thank you for the reply.

They are, but that's not my point. If you ask in 2 places you have 2 lots of people trying to help with the same question, each unaware that the others might have answered you.

Have you had a satisfactory answer on Stack Overflow? Do you need help here?

1 Like

yes. I need help. I still cannot solve my problem after heeding the suggestion from the samaritan in stackoverflow. Please enlighten me.

Thank you in advance.

I cannot help, I don't know the answer. As a moderator I just picked up that you'd duplicated the question and queried what you are doing.

Now that what you want is clear I leave it others who might know the answer to help, if they can.

Close the IDE and delete tge above directory (make a backup first). Start the IDE again, the board package will be installed again.

Alternatively, use board manager, downgrade the Arduino AVR board package and next upgrade it again.

Hi @sterretje thanks for your advice. I mananged to resolve the problem after uninstall the program, manually delete the hidden folders in the \Arduino15\ and resinstall the package.

Appreciate your time and effort. Thank you very much!

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