Go Down

Topic: Error compiling for board Arduino/Genuino Mega or Mega 2560. (Read 1 time) previous topic - next topic

DallinDorrough

it worked for my other projects and then it just stops working.

spycatcher2k

Don't post images of errors, copy the whole error and post it here.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

DrAzzy

It's the "cannot rename core/core.a: permission denied" issue.

I forget how to fix that. Was that the one that comes from an overly aggressive antivirus blocking the compiler from doing it's thing?
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

DallinDorrough

Arduino: 1.8.1 (Windows Vista), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

c:\program files (x86)\arduino\hardware\tools\avr\bin\../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: Permission denied

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

ballscrewbob

The best bet just to start with.


Slow compiles under Windows or permission denied

Add the Arduino directories to your antivirus / anti malware / other security exclusions.

So that would be at least two of the following.

C:\Program Files (x86)\Arduino
C:\Users\yourname\AppData\Local\Arduino15      depends on IDE
C:\Users\yourname\AppData\Roaming\Arduino15   depends on IDE

If you have your sketches set up in a different location it's also worth adding that directory to the exclusions also.

Additionally if you also use the online IDE "CREATE" the following directories.

C:\Users\yourname\AppData\Roaming\ArduinoCreateAgent
C:\Users\yourname\AppData\.arduino-create

If you have installed to a different drive swap the drive letter as needed.
If you also have an unzipped IDE installed that path should also be added to exclusions
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

jovan99djokic

I has the same problem,just run as administrator and it will upload the code

Go Up