Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: exit from debug state in THUMB mode

2005-11-10 by Rob Jansen

>     Does anyone know the proper way of exit from debug state to the thumb
>  running state? This is not described in any available arm documents.

The way you describe it in your previous mail sounds good:

>  > When I exit from debug state:
>  > 10. restore r1 to r15 (arm instruction - r15 is modified to reflect
>  > correct address after 12)
>  > 11. restore cpsr
>  > 12. restore r0 (arm or thumb instruction)

The only question is what will happen with the content of r15 during steps
11 and 12 (the LSB must stay 1 in order to jump to thumb mode).

I have not even reached thumb mode yet, I have some problems reading
registers after execution of a system speed LDR r1,[r0]. It seems the
RESTART has some side effects such that I am not able to do normal CPU
register reads anymore (reading the ICE registers looks Ok so scanchain
works).

I have planned to do some monitoring on the JTAG signals of a working JTAG
pod. I will also look at thumb at that time and keep you informed.

Regards,

    Rob

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.