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

ARM and THUMB code in disassembly window

Hi all,

how can I force the disassembly window of uVision to show thumb mode? The CPU runs in thumb mode (T=1), and a single step correctly advances the PC by 2 bytes, but the disassembly shows ARM instructions only.

Somebody else had the same problem before:
http://www.keil.com/forum/docs/thread7405.asp

The uVision project is not identical to the code I'm trying to debug! (I do not have the sources of the code in flash).

Any idea?

Rolf

  • The uVision debugger extracts the info about Arm/Thumb/Data memory ranges from the Elf/Dwarf output file created by the linker. It does however not look at the 'T' bit when disassembling because a ARM range should be disassembled as 32 bit instructions regardless of the state of the 'T' bit. This is also true for thumb code when 'T' is clear.

    When disassembling raw memory without the Elf/Dwarf information then the disassembler has no way to find out the correct set of instructions for disassembly.