Hi all,
I am using the PK51 compiler and I'm having a strange issue, when I create a main.c file with my main function in here and all other functions in this file I can single step all of my code into the different functions etc. But If I put some of these functions into an external .c file and include this from my main.c file I can no longer single step my code in debug, for example I cannot set breakpoints in my other.c file.
Does anyone know how to solve this issue?
Eoin
"... If I put some of these functions into an external .c file and include this from my main.c file ..."
Debug information has no knowledge of your .c file inclusion.
Don't include it in main.c, include it as another source file in your project so it will be compiled separately and linked into the final program.