2021-02-02 07:23 AM
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?
2021-02-05 02:51 AM
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.
2021-02-05 12:20 PM
.elf file generation and location is promoted as part of build console log
First build your project. Wait for completion then create a brand new debug configuration ... STM32CubeIDE should found .elf file by itself
2021-11-21 05:21 PM
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~