How to deal with "unclaimed interrupt with priority 0"?

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

How to deal with "unclaimed interrupt with priority 0"?

1,059 Views
qingshuzhuang
Contributor II

Environment:

  • JN5169
  • Base on JNAN-1220-Zigbee-3.0-Sensor
  • SDK:JN-SW-4170 Zigbee 3.0 v1840

Hi,I am making a single firewire switch,  a button controls a relay,And requires low power。

This device is a Sleep End Device. Every 0.5S wake up onece.

Sometimes an exception occurs,Exception appears in this function:ZTIMER_vSleep();

pastedImage_1.png

Debug log:

********** AppApiSaveMacSettings()
********** ZTIMER_vSleep()Unclaimed Interrupt at priority 0
u32PICMR = 0 : u32PICSR = 0
u32PICMSR = 0 : u32IPMR = 0
u32IHPR = 0 : u32AINT = 0 u32PINT 0
EPCR = a327f : EEAR = 71554daf
Stack dump:
4007ee4 : 04000578
4007ee8 : 00081707
4007eec : 00000002
4007ef0 : 00099bee
4007ef4 : 71554daf
4007ef8 : 00000000
4007efc : 00000000
4007f00 : 00000000
4007f04 : 00000000
4007f08 : 00000000
4007f0c : 00000000
4007f10 : 00000000
4007f14 : 20003e80
4007f18 : 00081787
4007f1c : 00000000
4007f20 : 00081642
4007f24 : 00082b3a
4007f28 : 00000000
4007f2c : 39817ac7
4007f30 : 20003e80
4007f34 : 00000029
4007f38 : 00080580
4007f3c : 00000001
4007f40 : 20003e80
4007f44 : 00000000
4007f48 : 000835fc
4007f4c : 04000578
4007f50 : 00000003
4007f54 : 04000578
4007f58 : 00099ba5
4007f5c : 0f000000
4007f60 : 00081d8c
4007f64 : eb000000
4007f68 : 0000ca05
4007f6c : 000a3909
4007f70 : 00000000
4007f74 : 040041f0
4007f78 : 00081d92
4007f7c : 00000000
4007f80 : 0008be67
4007f84 : 00000000
4007f88 : 00000000
4007f8c : 0000b5e4
4007f90 : a0000000
4007f94 : b5e40000
4007f98 : 000a4662
4007f9c : 00005f40
4007fa0 : 00099be9
4007fa4 : 0f000000
4007fa8 : 00000000
4007fac : eb000000
4007fb0 : 4545be26
4007fb4 : c38ce0b9
4007fb8 : 00000003
4007fbc : 00000005
4007fc0 : 0fffffff
4007fc4 : 04003e10
4007fc8 : 0008bd3b
4007fcc : 00000000
4007fd0 : 00000000
4007fd4 : 00000002
4007fd8 : 00000003
4007fdc : 00000000
4007fe0 : 00081b15
4007fe4 : 00000000
4007fe8 : 00001ae8
4007fec : 00000000
4007ff0 : 00000000
4007ff4 : 0008bfd1
4007ff8 : 76543210
4007ffc : fedcba98
EPCR = 81707 : EEAR = 71554daf
Stack dump:
4007fdc : 04000578
4007fe0 : 00081e50
4007fe4 : 04000578
4007fe8 : 00001ae8
4007fec : 00000000
4007ff0 : 00000000
4007ff4 : 0008bfd1
4007ff8 : 76543210
4007ffc : fedcba98

How to deal with "unclaimed interrupt with priority 0"?

How to locate the problematic code based on the exception log?(use .map file ?)

Labels (2)
Tags (3)
0 Kudos
3 Replies

946 Views
qingshuzhuang
Contributor II

I haven't solved the problem yet.

I need help

0 Kudos

946 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi qingshu zhuang,

The ZTIMER_vSleep must be the last instruction before entering to sleep mode.

Please look at the JN-AN-1229 Sleep end device for a better reference.

PWRM_CALLBACK(PreSleep)
{
    vAHI_DioSetOutput(0,0x01);
    DBG_vPrintf(TRACE_APP, "APP: Going to sleep (CB)\n");
    vAppApiSaveMacSettings();
    ZTIMER_vSleep();
}

Regards,

Mario

0 Kudos

946 Views
qingshuzhuang
Contributor II

There is irq_JN516x.s file, Not changed。

pastedImage_1.png

0 Kudos