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

Unable to set breakpoints in C code during Debug

Hello,

Here is a summary of the software/hardware that I am using

- NXP LPC2103 uC,
- Keil uVision4,
- ULINK JTAG debugger

After starting a debug session, I am unable to set breakpoints within C code, however I can set breakpoints in assembly code displayed in the Disassembly window.

- I have verified that build options include generation of Debug symbol information (-g option is present)
- I have also tried turning off optimization, i.e. building with -O0 optimization but that does not seem to help either.
- Download to Flash option is NOT checked under the settings for ULINK debugger.

In general there appears to be a lack of correlation between displayed assembly listing and C code. What do I need to do to be able to set breakpoints in C code ?

Thanks in advance,
Vikram.