Skip to main content
david tomsa
Associate III
August 3, 2017
Solved

SPC570s PIT

  • August 3, 2017
  • 1 reply
  • 800 views
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.

    This topic has been closed for replies.
    Best answer by david tomsa
    Posted on August 07, 2017 at 07:07

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

    1 reply

    david tomsa
    david tomsaAuthorBest answer
    Associate III
    August 7, 2017
    Posted on August 07, 2017 at 07:07

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