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.