Skip to main content
BTrem.1
Senior
February 19, 2020
Question

where is program file?

  • February 19, 2020
  • 3 replies
  • 1139 views

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?

This topic has been closed for replies.

3 replies

Cartu38 OpenDev
Graduate II
February 19, 2020

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
BTrem.1Author
Senior
February 19, 2020

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
Senior
February 20, 2020

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