2017-08-03 03:26 AM
Hi,
i'm using Hightec Studio/Compiler an i try to set the PIT for a SPC570s µC.
InterruptInstall(IRQ_ID_PIT0_CH0, callback, 1)
This function set the following:INTC_PSR226 = 0x8001 and set the Pointer to the funcion 'callback' into the vector table.
Now my Problem, everytime when an Interrupt occurrs, the programm crashed. In Debug Window, the Controller stops at: 0x00000010: FF FF FF FF Unknown Instruction .
It would be nice if anyone could help me.
Solved! Go to Solution.
2017-08-06 10:07 PM
I found the Problem. There was an inactive Code in linker Script.
2017-08-06 10:07 PM
I found the Problem. There was an inactive Code in linker Script.