Skip to main content
Associate
May 22, 2024
Solved

fatal error #.elf: No such file or directory in STM32CubeIDE

  • May 22, 2024
  • 9 replies
  • 5125 views

Hello,

I’m trying to build the tutorial project at https://www.micropeta.com/video43 using STM32CubeIDE , I’ve tried it for the stm32f103c8t6 and it builds without error but when I tried to debug it said that these no such dt.elf file or directory. I have check the workspace and the dt.elf is literally these. I even tried to Inclued the dt.elf manualy but it still didn't work

Can someone help me figure out what I am doing wrong?

440802817_1268568877437770_877855977088048128_n.png445380639_7993749150649677_997007857836132722_n.png

This topic has been closed for replies.
Best answer by unsigned_char_array

Spaces or special characters in paths can cause issues.

folder_name2.pngfolder_name1.png

Please remove the single quote from the username or use a different path. I usually put my projects in a folder directly in my root directory to avoid paths that are too long or have spaces.

9 replies

mƎALLEm
ST Technical Moderator
May 22, 2024

Hello,

dt.elf is a binary auto generated by the tool after compilation. 

dt.elf needs to be in Debug folder. No need to move it to other location.

Could you please share your project so I can have a look at?

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
kathusAuthor
Associate
May 22, 2024
mƎALLEm
ST Technical Moderator
May 22, 2024

Hello,

Thanks. Could you please upload your project in the thread by drag and drop option:

SofLit_0-1716377689402.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
unsigned_char_array
Lead III
May 22, 2024

Spaces or special characters in paths can cause issues.

folder_name2.pngfolder_name1.png

Please remove the single quote from the username or use a different path. I usually put my projects in a folder directly in my root directory to avoid paths that are too long or have spaces.

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."