Closed ninjaboy667 closed 2 months ago
Fixed Please add in the documentation that the Arduino IDE needs to Run as administrator in order to use the XMC-flasher.py. A prompt could probably be added, or there surely is some way to run this without admin privileges ? @boramonideep
Hi @ninjaboy667, Thanks for submitting & elaborating on this issue.
We will definitely look into this and improve the docs, or better - find a way to run this without admin privileges.
Best regards Julian
This issue is stale because it has been open more than 6 weeks with no activity. Please comment on this issue if it's still relevant or it will be closed automatically after 1 week.
The problem is this code:
Is creating the cmd.jlink
file in the current working directory. That is whatever path Arduino IDE was started from. It is common to install Arduino IDE in a path like C:\Program Files\arduino-ide
and Windows imposes special security restrictions on this path, which causes the creation of the file to fail with this "Permission denied
" error.
The solution is to adjust the xmc-flasher.py
code so that it sets an absolute path for the cmd.jlink
file instead of dumping it into whatever happens to be the current working directory. An appropriate path should be used for this purpose. Since this is a temporary file, it should be created under the system temporary folder.
Hi @per1234
Thank you very much for this hint. Yes, the download path creates permission problems if the Arduino IDE is installed for all users of Windows. We will fix this in the next release. @ninjaboy667
BR, Linjing
This was resolved in release 3.3.0, so close this issue
Description: PC is running on local admin.
Code was pulled straight from the XMC 1100 sleep example file:
https://github.com/Infineon/XMC-for-Arduino/tree/master/libraries/DeviceControlXMC/examples/SleepModeXMC1100
Steps to Reproduce:
install Jlink, Arduino IDE, install XMC board manager 3.0.0 on arduino
Copy example files, attempt to upload
Expected Result:
permission denied
Actual Result:
**Frequency (1/1)
Windows 10
Arduino IDE 2.2.1