XGATE debug

Started by timjenison August 18, 2005
Is there a way to single step XGATE from the CW debugger?



Hi.

The debugger has a preference for stepping the CPU when halted freely
(without breakpoint hit), so stepping is routed to the CPU. If you set a
breakpoint on XGATE source code, stepping is routed to XGATE core, when
stopped on this breakpoint.

As you noticed, this is not helpful when you freely stop and want to step
the XGATE code. A command can be used to force stepping both cores.

Use the STEPBOTHCORES (see here below release note extract), which can be
executed from a command file (Startup, if you want) or from the Command
window, but the stepping is "one for one intruction" on each core, which is
not the truth in real time.

Also make sure your application sets the XGFRZ bit is set in the XGMCTL
register, because the debugger will NOT do it automatically.
If not set, the XGATE core will keep on running while the CPU is BDM halted.
This was done intentionally. release note extract
--------------------
. STEPBOTHCORES: Single step XGATE and HCS12X cores at the same time.
Disabled by default.
Important: This is a simulation and does not match with standalone
behavior.
The command syntax is:
STEPBOTHCORES <ON|OFF>
e.g. : STEPBOTHCORES ON
Regards,
Gilles At 10:14 PM 8/18/2005, you wrote:
>Is there a way to single step XGATE from the CW debugger? >
>Yahoo! Groups Links >
>




Many thanks, Gilles. I can't seem to find this in the release notes. > Hi.
>
> The debugger has a preference for stepping the CPU when halted
freely
> (without breakpoint hit), so stepping is routed to the CPU. If you
set a
> breakpoint on XGATE source code, stepping is routed to XGATE core,
when
> stopped on this breakpoint.
>
> As you noticed, this is not helpful when you freely stop and want
to step
> the XGATE code. A command can be used to force stepping both cores.
>
> Use the STEPBOTHCORES (see here below release note extract), which
can be
> executed from a command file (Startup, if you want) or from the
Command
> window, but the stepping is "one for one intruction" on each core,
which is
> not the truth in real time.
>
> Also make sure your application sets the XGFRZ bit is set in the
XGMCTL
> register, because the debugger will NOT do it automatically.
> If not set, the XGATE core will keep on running while the CPU is
BDM halted.
> This was done intentionally. > release note extract
> --------------------
> . STEPBOTHCORES: Single step XGATE and HCS12X cores at the same
time.
> Disabled by default.
> Important: This is a simulation and does not match with
standalone
> behavior.
> The command syntax is:
> STEPBOTHCORES <ON|OFF>
> e.g. : STEPBOTHCORES ON >
> Regards,
> Gilles > At 10:14 PM 8/18/2005, you wrote:
> >Is there a way to single step XGATE from the CW debugger?
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >


Hi.

Thanks for warning. Indeed, a release note distribution for ICD12 Host
Target Interface appeared on one product release.

The RN is stored in your CodeWarrior installation folder
"Release_Notes\HC12\Notes_debugger_icd12.txt"

but it might be a revision older than your ICD12 HTI.

I will send you offline the full release note.

Regards,
Gilles

>Many thanks, Gilles. I can't seem to find this in the release notes. > > Hi.
> >
> > The debugger has a preference for stepping the CPU when halted
>freely
> > (without breakpoint hit), so stepping is routed to the CPU. If you
>set a
> > breakpoint on XGATE source code, stepping is routed to XGATE core,
>when
> > stopped on this breakpoint.
> >
> > As you noticed, this is not helpful when you freely stop and want
>to step
> > the XGATE code. A command can be used to force stepping both cores.
> >
> > Use the STEPBOTHCORES (see here below release note extract), which
>can be
> > executed from a command file (Startup, if you want) or from the
>Command
> > window, but the stepping is "one for one intruction" on each core,
>which is
> > not the truth in real time.
> >
> > Also make sure your application sets the XGFRZ bit is set in the
>XGMCTL
> > register, because the debugger will NOT do it automatically.
> > If not set, the XGATE core will keep on running while the CPU is
>BDM halted.
> > This was done intentionally.
> >
> >
> > release note extract
> > --------------------
> > . STEPBOTHCORES: Single step XGATE and HCS12X cores at the same
>time.
> > Disabled by default.
> > Important: This is a simulation and does not match with
>standalone
> > behavior.
> > The command syntax is:
> > STEPBOTHCORES <ON|OFF>
> > e.g. : STEPBOTHCORES ON
> >
> >
> >
> > Regards,
> > Gilles
> >