Fail to debug in Win 11 C/C++
Hi All
I am new to this and try to follow the book, Bare Metal C Embedded systems. So far everything went smoothly. I am on a Win11, have installed Mingw64 with Msys2 installer. Have installed System Workbench for STM32 (Eclipse).
When I run the sample program, Hello World it works fine. When I enter the debugger and step through line by line I get not output. When reaching the last line I get this message:
Quote: “__Can’t find a source file at “C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c”
Locate the file or edit the source lookup path to include its location.__”
I have tried to include the mingw64\bin to my Build > Environment and in Debug Configurations under Source, I have added the File System Directory.
File explorer shows no sign of a file called “crtexe.c”.
I do not have any file in C:/M which does not exist and it should be a backslash.
I have tried to clean and rebuild. Assisted with Copilot I went through the different options. The last option Copilot gave was to reach out the the experts in community forums. Here I am.
Any suggestions is highly appreaciated.