This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems with debugging in C source code

Hello,

I evaluate the Keil uVision V3.x (with Ulink and atmel arm7 evaluation board) and want to debug C source code.
Today I learned that all c source files must be in the same directory like uVision project file (*uv2).
Otherwise you cannout debug c source code.
Is this right?
Until now I arranged my source, header and project files in different directories.
For Example: Project_Test Output Source1 Header

That's no problem with other IDEs.

Best Regards

Parents
  • "No, that is not true."

    Unless, perhaps, it is a limitation when using the GNU tools?

    Otherwise, I can't see why it should be true - it is certainly not true of the C51 tools!

    Do you have spaces anywhere in any of your path names?
    That can certainly mess things up - maybe then you're just lucky that the tools don't use pathnames if they can find everything in the same folder?

Reply
  • "No, that is not true."

    Unless, perhaps, it is a limitation when using the GNU tools?

    Otherwise, I can't see why it should be true - it is certainly not true of the C51 tools!

    Do you have spaces anywhere in any of your path names?
    That can certainly mess things up - maybe then you're just lucky that the tools don't use pathnames if they can find everything in the same folder?

Children
  • Thank you for your answers.

    The path names have no spaces.
    I use the Keil ARM Tools with Realview Compiler. It is the evaluation version.
    I don't know what's wrong. I spend ours to find a solution. I tested and modified the "Hello world" example application. It's the same behaviour. After copying the C source files into another directory, you cannot debug C source code. uVision jumps to the disassembly window and you cannot insert breakpoints in your c source file.