fatal error #.elf: No such file or directory in STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 3:28 AM
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?
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:39 AM
Spaces or special characters in paths can cause issues.
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.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:08 AM - edited ‎2024-05-22 4:10 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:31 AM
Thanks for your respond
Here is my project:
https://drive.google.com/file/d/1LBKrJpbTZYDN1Q1JnSnqM6HaBd-rl08U/view?usp=sharing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:34 AM
Hello,
Thanks. Could you please upload your project in the thread by drag and drop option:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:39 AM
Spaces or special characters in paths can cause issues.
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.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:53 AM
Did you try my solution?
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 4:55 AM
Hello,
I didn't face any issue to upload and start a debug session with your project:
Could you please regenerate the code and compile again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 5:05 AM
sorry im in middle of a class and didn't bring my lap so I'll try your solution when i get home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 5:06 AM
I used the OCD debug prode like the tutorial project, when I used the GDB server it Could not verify ST device and failed to start GDB server, can you tell me how you config your ST-link GDB server
