On Tue, Jun 24, 2008 at 5:17 PM, Pieter Conradie
<[EMAIL PROTECTED]> wrote:
> Hi List,
>
>
>
> "run_and_init" clears the CPU registers to their default state, e.g. PC =
> 0x00000000, but "run_and_halt" does not. Is this the intended behaviour?

Yes.

run_and_halt literally means reset, run for a bit, then halt.

This is what will happen if srst pulls trst, i.e. that reset_halt is impossible.

Could be useful when srst does not pull trst to let early startup code run
to set up registers..


> I assumed that both options could be used to reset a CPU to it's default
> state if it could not be halted using hardware watchpoints at address
> 0x00000000 and using SRST (because SRST also pull TRST) as observed on
> AT91SAM7 series.
>
>
>
> Best regards,
>
>
>
> Pieter Conradie
>
> Psitek (Pty) Ltd
>
> Hardware Engineer
>
>
>
> Tel:         +27 (0) 21 912 2100
>
> Cell:        +27 (0) 72 262 9879
>
> Fax:         +27 (0) 21 912 2120
>
> Website: www.psitek.com
>
>
>
> Notice
> This email is intended for the addressee only and may contain legally
> privileged and/or confidential information. If you have received this email
> in error and are not the intended recipient, you are hereby informed that
> you are not entitled to read, broadcast, distribute or in any manner
> whatsoever use the contents of this email or any attachments thereto. You
> are requested to please notify Psitek that you have received the email and
> then delete it. Unless clearly stated otherwise, the content and sentiments
> expressed in this email or any attachments thereto are those of the sender
> and not of Psitek (Proprietary) Limited. Psitek does not accept liability
> for any damages, loss or expense of any nature whatsoever arising (a) out of
> or in connection with the email or any attachments thereto and/or (b) from
> any act or omission by the recipient relying upon the content of the email
> or attachments. Psitek further disclaims liability for any damages caused by
> computer and/or software viruses. Should this email contain the terms of a
> contract, no binding agreement will result until such time as a written
> (hardcopy) document is signed on behalf of Psitek.
> _______________________________________________
> Openocd-development mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/openocd-development
>
>



-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to