We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 16385

EDK - I cannot open the output file "/code/executable.elf" ("Permission denied in Windows")


General Description:

The following message is reported:

"Cannot open output file <ppc instance>/code/executable.elf: Permission denied in Windows."

A similar problem occurs when powerpc-eabi-gdb/mb-gdb fails to unlock "executable.elf" upon exiting.


When you exit from GDB (either normally or abnormally), system processes that remain active are locking the executable file. Consequently, even if you have access permissions for the executable file and the file is not read-only, the "permission denied" message is reported for the executable.elf file.

To avoid this problem, clean up the GDB session in both "Applications" and "Processes", using Windows Task Manager:

1. In Windows, start Windows Task Manager.

2. Click on "Application" and end all GDB-related tasks.

3. Click on "Processes" and end all GDB-related process.

You can now delete or overwrite the executable.elf file.

AR# 16385
Date Created 09/03/2007
Last Updated 12/15/2012
Status Active
Type General Article