On mer, 2010-03-10 at 15:34 +0100, Alberto Panizzo wrote:
> Thanks David,
> On mar, 2010-03-09 at 09:17 -0800, David Brownell wrote:
> > On Tuesday 09 March 2010, Alberto Panizzo wrote:
> > > The first problem I am facing is the Warning: "ran after reset an before
> > > halt"
> > >
> > > What can I do to halt the CPU early?
> >
> > ISTR reports about imx31 hardware problems in that area ...
> >
> > basially, the "vector catch" mechanism is supposed to solve
> > that problem. But for some reason it's not kicking in...
> >
>
> well, from the initialization:
> > arm11 vcr
> VCR 0x00000000
>
> and also if I enable the reset watch:
> > arm11 vcr 1
> VCR 0x00000001
> > arm11 vcr
> VCR 0x00000001
>
> also if I set a breakpoint:
> >bp 0 4 hw
> breakpoint set at 0x00000000
> >bp 0xa0000000 hw # Address from where it is fetched the first instruction in
> >my bootmode
> breakpoint set at 0xa0000000
>
> > reset halt
> JTAG tap: imx31.etb tap/device found: 0x2b900f0f (mfg: 0x787, part: 0xb900,
> ver: 0x2)
> JTAG tap: imx31.cpu tap/device found: 0x07b3601d (mfg: 0x00e, part: 0x7b36,
> ver: 0x0)
> TAP imx31.whatchacallit does not have IDCODE
> JTAG tap: imx31.smda tap/device found: 0x1190101d (mfg: 0x00e, part: 0x1901,
> ver: 0x1)
> found ARM1136
> imx31.cpu: ran after reset and before halt ...
> target state: halted
> target halted in ARM state due to debug-request, current mode: Supervisor
> cpsr: 0x800001d3 pc: 0xa000037c
>
I've added a DSCR debug in poll command and the result is:
>poll
background polling: on
TAP: imx31.cpu (enabled)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x800001d3 pc: 0xa0000384
DSCR 00006003 e
So Monitor Mode [DSCR:15] is disabled and Mode Select [DSCR:14] is in "Halting
debug-mode selected and enabled"
--
Alberto!
Be Persistent!
- Greg Kroah-Hartman (FOSDEM 2010)
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development