CodeWarrior debugging of executing P4080 core

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

CodeWarrior debugging of executing P4080 core

899 Views
bobperry
Contributor II

Hi,

 

I am trying to debug an executing P4080 CPU.  I am attaching to the device using a TAP over Ethernet.  I am attaching to a current running core through Codewarrior and this works as expected.  The running application is running virtual addressing using both TLB 0 and TLB1.  The issue I have is that I can single step code and look at registers fine but I am not able to debug the exception handlers.  I have tried placing breakpoints at the handler address and this never gets a hit.  I know that the IVORs are set-up with a base address and then an offset and wondered if this is an issue with the debug process.  I have tried to add the break point at the virtual address and also the real address; no hit.

 

The core has a virtual address space of 0x30000000 and its address range is from 0x00000000 to 0x0f000000 and the IVORs are from 0x00000000 to 0x000001f0.  IVOR 0 is at 0x10.  So, a break point set at virtual address 0x10 never gets a hit and neither setting a break point at 0x30000010 gets a hit.  Yet, I know the IVOR is entered from debug messages I have in the handler.  Anyone help with what I maybe doing wrong here.

Labels (1)
0 Kudos
Reply
1 Reply

627 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Bob Perry,

CodeWarrior debugger also uses the effective address, if the exception handler is at 0x30000010, the breakpoint should also been set at 0x30000010, please check the CodeWarrior Disassembly Window whether the current executing instruction is at address 0x30000010. Please make sure that the source code used in CodeWarrior IDE is coincident with the binary file executing on the target board.

In addition, please don't use memory configuration file in CodeWarrior debugger setting.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply