cancel
Showing results for 
Search instead for 
Did you mean: 

SPC570s PIT

david tomsa
Associate III
Posted on August 03, 2017 at 12:26

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.

1 ACCEPTED SOLUTION

Accepted Solutions
david tomsa
Associate III
Posted on August 07, 2017 at 07:07

I found the Problem. There was an inactive Code in linker Script.

View solution in original post

1 REPLY 1
david tomsa
Associate III
Posted on August 07, 2017 at 07:07

I found the Problem. There was an inactive Code in linker Script.