Skip to main content
KKris.3
Associate
December 2, 2022
Question

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

  • December 2, 2022
  • 4 replies
  • 6169 views

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.

4 replies

Associate
March 4, 2024
Associate
March 4, 2024

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

Associate
July 16, 2024

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
January 30, 2025

1. "Clean Project"

2. "Build Project"