cancel
Showing results for 
Search instead for 
Did you mean: 

IDE not generating .elf file, Program file does not exist

CGrov.1
Associate II

I have a project that compiles with no errors, but when I try to debug I get an error:

"Program Filed does not exist"

With details:

Program file does not exist

C:\HDRlowerMicro\HDRlowerMicro\Debug\HDRlowerMicro.elf not found

C:\HDRlowerMicro\HDRlowerMicro\Debug\HDRlowerMicro.elf not found

C:\HDRlowerMicro\HDRlowerMicro\Debug\HDRlowerMicro.elf not found

When I check the directory there is no .elf files being created. I tried cleaning the project and playing with the debugger settings, but no luck. How do I tell the IDE to generate a .elf file or check where it is being saved?

3 REPLIES 3
KnarfB
Principal III

You can check in the Project Explorer view where the binaries were generated. If you open Dubgu Configurations... in the "main" tab you can Search Project...

When you press the bug icon for debugging, make sure that the project is selected in the Project Explorer view.

Cartu38 OpenDev
Lead II

.elf file generation and location is promoted as part of build console log

0693W000007EBkBQAW.jpgFirst build your project. Wait for completion then create a brand new debug configuration ... STM32CubeIDE should found .elf file by itself

LHyun.1
Associate

Thank you, @KnarfB​ . I also selected the project but didn't select the C/C++ application by using Search Project button right bellow the Project selection.

After the select the C/C++ application, it works very well.

Thanks again and have a good day~