How use Debug interrupt?

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

How use Debug interrupt?

577 Views
gochoi
Contributor I

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?

Labels (1)
0 Kudos
1 Reply

479 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

disconnect the debugger / disable external debug mode. This should help.

pastedImage_1.png

For debugging of debug interrupt, debugger cannot be used. Instead of that, use rather UART messages or LED toggling or something like that.

Regards,

Lukas

0 Kudos