cancel
Showing results for 
Search instead for 
Did you mean: 

where is program file?

BTrem.1
Senior II

I'm just getting started with the STM32CubeIDE and trying to build a motor control projects. I can compile with 0 errors but when I go to run debug it says 'no program file is specified'. If I have a C project named "my_projects" what will the name of the program file be and where is it located?

3 REPLIES 3
Cartu38 OpenDev
Lead II

Looks for *.elf file in your project ...

Location depends of your build configuration name.

Common location is <project repository>/<build configuration name>/<project name>.elf

Default build configurations are "Debug" and "Release".

Project compilation log within console should provide you such .elf file path.

Creating debug configuration after compile success should find for you such .elf file.​

BTrem.1
Senior II

My mistake, most the console window was offscreen. elf was not generated because an include file was missing, file stm32f3xx_ll_bus.h

The file is in directory C:\Users\User\STM32Cube\Repository\STM32Cube_FW_F3_V1.11.0\Drivers\STM32F3xx_HAL_Driver\Inc

How do I add this path to my project?

Richard Li
Associate II

If you use STM32CUBEIDE, you can set under properties as attached drawing.