On Sun, Dec 20, 2009 at 5:57 PM, Antonio Borneo
<[email protected]> wrote:
> Command "reset halt" checks if PC properly resets, issueing warning:
> "PC was not 0. Does this target need srst_pulls_trst?".
> Checking PC against 0 is not always correct.
>
> ARM cores have HW signal VINITHI to force exception vectors at high addresses.
> If at reset VINITHI is high, it sets "V" bit in Control Register c1 and forces
> address 0xffff0000 as next PC.

I think a better option is to remove the check on reset PC address
altogether.

The reason for performing this check is to catch the case where
srst pulls trst.

The reset code will discover that the CPU is not halted and issue a halt
now, so the default behavior for incorrect reset_config options is reasonable
here.

Complicated code to catch all obscure cases seems to be like asking
for trouble.





-- 
Øyvind Harboe
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 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