Skip to main content
KKris.3
Associate
Dec 2, 2022 4:05 PM UTC
Question

"Can't find a source file at " error while debugging with STMcubeIDE

I'm using STMcubeIDE for my projects. Recently I reset my PC, so I took a backup of my projects and reinstalled the CubeIDE. Now when I try to flash and debug my projects, I get the "Can't find a source file at " error.

0693W00000WK78PQAT.pngI noticed the path the error was showing was the path on my previous PC. After resetting, the path changed. So, I created a new project file in a different workspace, but still, I get the same error with the new path.

0693W00000WK78UQAT.png 

Please help me to fix this error. It looks like the program is flashed correctly. But I can not start a debug session.

This topic has been closed for replies.

4 replies

Associate
Mar 4, 2024 12:37 PM UTC
Associate
Mar 4, 2024 12:59 PM UTC

2024-03-04_20-56-26.png

Associate
Jul 16, 2024 7:16 AM UTC

I had the same problem, my solution to this problem which worked was to remove Debug directory from the project and make it generate from scratch.

NFern.1
Associate III
Jan 30, 2025 2:24 PM UTC

1. "Clean Project"

2. "Build Project"