Skip to main content
davedave95
Associate III
February 9, 2017
Question

SWT interrupt

  • February 9, 2017
  • 3 replies
  • 807 views
Posted on February 09, 2017 at 16:15

Hi,

I'm having problems with the SWT generating an interrupt before going through reset on the SPC560P44L3

ITR bit is enabled, and when I trigger the watchdog I see the TIF bit switch on after the first timeout, and after the second timeout the CPU is reset, as expected.

Vector28 is not called when TIF goes active, however. Do I need to configure anything else in addition to the ITR bit to get this to work?

Thanks,

    This topic has been closed for replies.

    3 replies

    Erwan YVIN
    ST Employee
    February 9, 2017
    Posted on February 09, 2017 at 17:43

    Hello Geirt ,

    Did you set your corresponding PSR for SWT ?

    INTC_PSR(28) = YOUR_PRIORITY;�?

    Best regards

    Erwan

    davedave95
    Associate III
    February 9, 2017
    Posted on February 09, 2017 at 17:49

    Yes, I did. Sorry I forgot to mention this.

    davedave95
    Associate III
    February 9, 2017
    Posted on February 09, 2017 at 21:42

    This problem has been solved. I was mixed up in another completely unrelated issue which caused wrong symptoms affecting the interrupt handling. Sorry for the noise.