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 step through code

I am using the restricted version of uVision3 along with ULink JTAG adapter, and I am trying to debug some C code. Every time I try to single step through my code it always goes to the disassembly window. If I close the window and go back to the source, it just opens the disassembly window again. This happens whether I am using the simulator or trying to debug with the hardware. Is single-stepping through source not available on the limited version?

Parents
  • So I have no idea what I just did, but after 3 hours, suddenly it works. I started going through the menus changing options, and now I can debug. Something else, is that I couldn't add variables to watch, and not I can.

    If I remember right, I unchecked build hex file, built the project, and then rechecked it, and built again. I Renamed my target, and I set load options to erase the entire device each time I program (I was doing it manually before). then I rebuilt in simulation mode, and it worked. checked build hex file again. Rebuilt to use ULINK, and now I'm debugging and watching variables on my device.

    I'm thinking that I had a corrupt file that needed to be rebuilt, and all my option changing and building finally did it. I probably should have attempted to clean the project. I can't remember if I tried that or not, but I have a feeling it would have worked.

Reply
  • So I have no idea what I just did, but after 3 hours, suddenly it works. I started going through the menus changing options, and now I can debug. Something else, is that I couldn't add variables to watch, and not I can.

    If I remember right, I unchecked build hex file, built the project, and then rechecked it, and built again. I Renamed my target, and I set load options to erase the entire device each time I program (I was doing it manually before). then I rebuilt in simulation mode, and it worked. checked build hex file again. Rebuilt to use ULINK, and now I'm debugging and watching variables on my device.

    I'm thinking that I had a corrupt file that needed to be rebuilt, and all my option changing and building finally did it. I probably should have attempted to clean the project. I can't remember if I tried that or not, but I have a feeling it would have worked.

Children