Using STM32CubeIDE v1.4.2; When I 'Clean' a debug project, sometimes the x.elf file is left in the debug folder and the IDE console has an error msg indicating that permissions were denied on the x.elf file. Exiting and relaunching IDE is only solution.