fork/exec C:\Users\HP\Documents\ArduinoData\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-g++.exe: Access is denied.
Somehow the IDE cannot access the compiler. Do you have something like Bitdefender running or anti-virus software that is obstructing it ?
You can always try to uninstall and re-install the boards package.
Welcome to the forum
Please confirm which version of the IDE you are using
Have you ever been able to upload code to the ESO32 or any other board ?
I've never heard of it, but I don't think there is a third-party antivirus, I only have Windefender and it's been disabled and I've reinstalled the board package several times and the results are the same.
by the way, thanks for replying, this error is quite troublesome.
Thank you for replying, I am using version 1.8.19 for Arduino Ide, and previously uploaded for the ESP32 Dev Module board, but this error occurred 2 weeks ago.
I know this problem has been reported before, just search the forum. I would do it for you but I am busy.
Yes, someone fixed it by reinstalling the board and it worked, but for some reason in my case it didn't work. Do I need to use the latest update? Or is there a problem with my PC? Thanks for replying.
Fix is here found with forum search.
You have a strange path for the compiler; the usual path is somewhere in the Arduino15 directory (C:\Users\yourUsername\AppData\Local\Arduino15). Is there anything special about your installation?
@sonofcy
Not quite as far as I can see; the link is about upload problems, not about "access denied" for the compiler.
Thank you, I will check it out.
arduino 15 remains on the path it should be, nothing is different, I installed it normally without changing anything. should i uninstall everything and delete the files and reinstall?
I don't know. I just noticed this strange path for the compiler.
I have a standard install of 1.8.19 as well as a portable install of it; the compiler path is
normal
"C:\\Users\\bugge\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-rv32\\2601/bin/riscv32-esp-elf-g++"
portable
"C:\\Users\\bugge\\ArduinoIDE\\3_arduino-1.8.19.esp32\\portable\\packages\\esp32\\tools\\esp-x32\\2601/bin/xtensa-esp32-elf-g++"
It does not explain why you get an access denied.
This is because @bgsddemang is using the Windows app version of Arduino IDE 1.x:
It uses this non-standard path for the data folder.
should i install from microsoft store?
You already did that.
then what should i do? any suggestion?
Is your C:\Users\HP\Documents folder using the Microsoft "OneDrive" cloud file storage service (or any other similar service, such as Dropbox)?
It is possible the error might be caused by not having a connection to the cloud file storage service.
i dont think so..
