Getting RTC interrupt with no reason

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting RTC interrupt with no reason

826 Views
svetotled
Contributor I

Hello.
I am using my custom bootloader with APP (with position independent code) on s32k144 and I am facing a problem right after app launch (when all clocks are configured and some periphery are inited). MCU permanently runs into this RTC interrupt with no reason (see RTC SR register) and main program halts on same address. I am running into this interrupt even if it is disabled in NVICISER1 (14 bit, according to interrupt map) and when RTC was not inited at all (after every reflashing I am disabling power to reset RTC registers). When I am using step-by-steb debug in main program - all works as it should. I am not sure that this is RTC issue, but how can I check this?
pastedImage_2.png

Content of other registers in interrupt, maybe it can help:
NVIC

NVICISER0: 0x0001FFFF @e000e100
NVICISER1: 0x00000000 @e000e104
NVICISER2: 0x0167C000 @e000e108
NVICISER3: 0x04005000 @e000e10c


NVICICER0: 0x0001FFFF @e000e180
NVICICER1: 0x00000000 @e000e184
NVICICER2: 0x0167C000 @e000e188
NVICICER3: 0x04005000 @e000e18c

NVICISPR0: 0x00000000 @e000e200
NVICISPR1: 0x00004000 @e000e204
NVICISPR2: 0x00000000 @e000e208
NVICISPR3: 0x00000000 @e000e20c

NVICICPR0: 0x00000000 @e000e280
NVICICPR1: 0x00004000 @e000e284
NVICICPR2: 0x00000000 @e000e288
NVICICPR3: 0x00000000 @e000e28c

NVICIABR0: 0x00000000 @e000e300
NVICIABR1: 0x00000000 @e000e304
NVICIABR2: 0x00000000 @e000e308
NVICIABR3: 0x00004000 @e000e30c

SCB

ICSR: 0x0040087E @e000ed04

   ICSR->VECTACTIVE 0x07E - reserved of CAN2?

0 Kudos
1 Reply

774 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

At first, could you try to disable interrupts and move the vector table before the jump to the app?

/* Relocate vector table */
S32_SCB->VTOR = (uint32_t)APP_START_ADDRESS;

I recommend jumping into the application after reset.

I hope it helps.

Best regards,

Diana

0 Kudos