AnsweredAssumed Answered

How use Debug interrupt?

Question asked by GyuOk Choi on May 29, 2019
Latest reply on May 30, 2019 by Lukas Zadrapa

I want to use the debug interrupt without halt.

I am using the SPC5604p.

 

I try:

precondition

///////////////////////source code/////////////////////////

// ivor_branch_table.c

__declspec(vle_on) asm void ivor_branch_table_p1(void) {
nofralloc
.align SIXTEEN_BYTES
IVOR0trap: b IVOR0trap // IVOR 0 interrupt handler

...

...

...

.align SIXTEEN_BYTES
//IVOR15trap: b IVOR15trap // IVOR15 interrupt handler
IVOR15trap: b debugEvent_Test// IVOR15 interrupt handler

// ivor_branch_table.c end

//main.c

volatile int debugEvent_cnt= 0;
void debugEvent_Test()
{
   debugEvent_Test++;
   __asm(rfdi);
}

//main.c end

//////////////////////////////////////////////////////////////////////

 

 

1. Core Register -> Debug Facilities -> IAC1 : I filled in the address I wanted.

2. Core Register -> Debug Facilities -> DBCR0[IDM] Enable.

    Core Register -> Debug Facilities -> DBCR0[IAC1] Enable.

 

result:

Core Register -> Debug Facilities -> DBSR[IAC1] : yes.

and halt.

 

How can i use debug interrupt without halt?

 

 

Outcomes