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

Is it possible to step through disassembly?

Hia,

I want to step through my c code, disassembly line by disassembly line. I've tried using F11/step into but this results in: the 'next statement' arrow jumping to a a line in the disassembly which is not the line directly after it is pointing. I appreciate this would be expected if it was a branching instruction, but its not,its a series of LDR insturctions

To be specific its:

0x000307C 4834 LDR r0[pc,#148] ;0x0003114

Which to my limited understanding of assmebly should load registe 0 with the value in the address offset from the program counter by 208 spaces.

What happens instead when I F11 is a branch to 0x0003042 and both R0 and R1 getting updated.

According to my understanding, that may because pressing F11 results in the debugger stepping through a single line of C code, or into a function if its already pointing at a function.

So is there an equivalent for going through disassembly in detail? Am I misunderstanding something here?

Any help appreciated

Parents
  • Sorry I forgot to mention my set up:

    ide: uvision 4
    mcu: lpc1778
    deubgger: ulink Pro - D
    toolchain: mdk arm... (I think so, does using keil basically make this the case? I'm not too sure how to identify what toolchain I'm using from project settings(or wherever your supposed to), so any pointers/info about that would also be appreciated. I'm aware there are alternatives like gcc)

Reply
  • Sorry I forgot to mention my set up:

    ide: uvision 4
    mcu: lpc1778
    deubgger: ulink Pro - D
    toolchain: mdk arm... (I think so, does using keil basically make this the case? I'm not too sure how to identify what toolchain I'm using from project settings(or wherever your supposed to), so any pointers/info about that would also be appreciated. I'm aware there are alternatives like gcc)

Children