Thumb state to ARM sate


When starting debug in all Rensas demos, I need to write 0 to the T bit of the CPSR register via the debug interface.
How do I switch the RZ/T2M processor from Thumb mode to arm mode software?

  • There should be no need to manually switch between ARM/Thumb modes, this is handled by the function calls at run-time that are fixed up by the compiler / linker during the build process.  The debugger should simply follow along with the mode of the device as it switches during run-time when function calls are made.