TC387:SMU: use a software alarm trigger NMI(Non maskable Interrupt)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
oneday
Level 2
Level 2
First comment on blog 10 replies posted 10 questions asked

Dear experts:

SMU test :Configure the software alarm0 to trigger NMI and  set a breakpoint in "void IfxCpu_Trap_nonMaskableInterrupt(uint32 tin)".When trigger software alarm0, MODULE_SMU.AEX.B.NMISTS=1,but can not enter into the "IfxCpu_Trap_nonMaskableInterrupt(uint32 tin)" .Why?

Please see the following pictures to know more detail:

1.Configure the software alarm0 to trigger NMI .

oneday_1-1669709579336.png

2.trigger software alarm0 to request NMI.

oneday_2-1669709624944.png

3.can not enter the "void IfxCpu_Trap_nonMaskableInterrupt(uint32 tin)" and stop at this breakpoint

oneday_3-1669709772470.png

 

So how can enter the "IfxCpu_Trap_nonMaskableInterrupt(uint32 tin)" when a NMI request is generated?

Looking forward to your reply.

0 Likes
1 Solution
oneday
Level 2
Level 2
First comment on blog 10 replies posted 10 questions asked

The  TRAPDIS0.CPU0SMUT is disabled by default.When I enabled the TRAPDIS0.CPU0SMUT, triggering software alarm0 can enter the NMI handler.

Thanks a lot.

View solution in original post

0 Likes
2 Replies
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

Can you check if TRAPDISx.CPUxSMUT is enabled for SMU to generate trap?

Thanks.

oneday
Level 2
Level 2
First comment on blog 10 replies posted 10 questions asked

The  TRAPDIS0.CPU0SMUT is disabled by default.When I enabled the TRAPDIS0.CPU0SMUT, triggering software alarm0 can enter the NMI handler.

Thanks a lot.

0 Likes