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

Can't set breakpoints in C code, only assembler code.

In some of my uVision2 projects the debugger will not allow me to set breakpoints in the C source code, only in the disassembly window. Other projects allow me to set breakpoints in either. There must be some sort of setting that I can't figure out.

Help Please

Parents
  • Let me clarify. I can only set breakpoints in Disasembly window, A51 source code, and the SRC file generated from the C code.

    My output settings for create executable have Debug Information checked.

    Under listing, I do not have assembly code checked. Yet the build still generates an SRC file.

    In the projects that allow me to set breakpoints in C code, no SRC file gets generated. Any ideas?

Reply
  • Let me clarify. I can only set breakpoints in Disasembly window, A51 source code, and the SRC file generated from the C code.

    My output settings for create executable have Debug Information checked.

    Under listing, I do not have assembly code checked. Yet the build still generates an SRC file.

    In the projects that allow me to set breakpoints in C code, no SRC file gets generated. Any ideas?

Children