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?
Hi,
disconnect the debugger / disable external debug mode. This should help.
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