XGATE debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XGATE debug

1,942 Views
khumphri
NXP Employee
NXP Employee

This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.

 

Posted: Thu Aug 18, 2005  8:14 pm

 

Is there a way to single step XGATE from the CW debugger?

 


 

Posted: Fri Aug 19, 2005  7:41 am

 

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 instruction" 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

 


 

Posted: Sat Aug 20, 2005  12:26 am

 

Many thanks, Gilles. I can't seem to find this in the release notes.

 


 

Posted: Mon Aug 29, 2005  2:30 pm

 

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,

Labels (1)
0 Kudos
0 Replies