How use Debug interrupt?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How use Debug interrupt?

578件の閲覧回数
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?

ラベル(1)
0 件の賞賛
1 返信

480件の閲覧回数
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 件の賞賛