Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: BWood on January 13, 2013, 08:18:45 am

Title: \hardware\tools\avr\bin\avr-ar: unable to rename 'core.a'; reason: Permission denied
Post by: BWood on January 13, 2013, 08:18:45 am
I tried to do the blink test on the software, but when I try to verify or upload the code I get the error "
C:\Program Files\Digispark Ready - Arduino 1.03\hardware\tools\avr\bin\avr-ar: unable to rename 'core.a'; reason: Permission denied"  

As far as I can tell there are no restrictions on accessing this file.  All users have full permissions.

Windows 7 64bit (though I think the install file installed the 32bit version)
Brand New Lenovo ideapad Y580
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: digistump on January 13, 2013, 11:29:12 am
BWood - Did you set the Tools->Board to Digispark as well as Tools-> Programmer?

If so this seems to be an issue with the Arduino IDE and some 64-bit computers  - not related to the Digispark project - here is a whole host of people having and solving hte issue with a variety of Arduinos - perhaps one of these posts might help:

https://www.google.com/search?q=hardware%5Ctools%5Cavr%5Cbin%5Cavr-ar%3A+unable+to+rename+\'core.a\'%3B+reason%3A+Permission+denied%22&oq=hardware%5Ctools%5Cavr%5Cbin%5Cavr-ar%3A+unable+to+rename+\'core.a\'%3B+reason%3A+Permission+denied%22&aqs=chrome.0.57j58&sourceid=chrome&ie=UTF-8#hl=en&safe=off&tbo=d&q=hardware%5Ctools%5Cavr%5Cbin%5Cavr-ar:++site:arduino.cc+unable+to+rename+%27core.a%27%3B+reason:+Permission+denied%22
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: BWood on January 13, 2013, 06:21:47 pm
I looked through dozens of these and none of them offered any solutions.  

After deleting, re-downloading, and re-installing the file several times I\'m now getting an error when trying to install the file.  

libusb-win32 Digispark Bootloader (01/17/2012 1.2.6.0)  Install Failed

Is there something I need to do to fully uninstall this?  I can\'t uninstall it through the control panel.

And I\'m still getting the same error when trying to run the start program.
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: digistump on January 13, 2013, 10:36:34 pm
BWood:

Can you try just hitting the verify button (next to the upload button) and see if you get the same message.

If you do - can you download the plain old Arduino IDE from arduino.cc and open that up, load the Examples->Basics->Blink example and hit the verify button (leaving the board set to whatever the default is) - do you get the same error?

This will at least tell us if it has something to do with the Digispark addon - or if it an issue with the Arduino IDE on your computer - then we can go from there.

Regarding the driver - are you running the InstallDriver.exe? - NOT the dpinst32 or dpinst64 - which will give you an error like that.

Thanks for your patience!
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: BWood on January 15, 2013, 06:10:43 pm
Erik,

I was hitting the verify button, without the Digispark connected to the computer.  I installed it from the InstallDriver.exe file the first time, but when it installed it looked like it had installed the 32bit driver. After I ran it and got the error, I tried installing dpinst64, but got the same error.

I installed the Digispark driver on my netbook running Windows 7 starter, and it worked just fine.  But that computer is unreliable and I am planning on getting rid of it soon.

I\'ll download the Arduino IDE this weekend and let you know if it works.  

Thanks
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: digistump on January 15, 2013, 06:27:05 pm
Thank BWood - I run 64 bit Windows 7 on several machines and the driver was always installed correctly - so my bet is something with that particular computer and the Arduino IDE - let me know how that goes when you have a chance.
Title: \\hardware\\tools\\avr\\bin\\avr-ar: unable to rename \'core.a\'; reason: Permission denied
Post by: ETSUhemp on January 19, 2013, 01:05:07 am
FYI: I received this same \"unable to rename \'core.a\'; reason: Permission denied\" error when I had forgotten to unplug the Digispark from the USB prior to hitting the [Upload] button.

Upon disconnecting the Digispark from the USB and then re-initiating the upload process, the problem resolved itself.