TC234 non-maskable interrupt by ESR1

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

cross mob
leonng
Level 3
Level 3
First like received First like given 10 questions asked

Hi there,

I'm following iLLD, "http://doc.tasking.com/act/illd_1_0_0_11_0/TC23x/html/group___ifx_lld___cpu___trap___usage.html", to use the NMI.

  

WhatsApp Image 2022-05-16 at 6.09.38 PM.jpg

Then, I check the memory and find that ESR1 is enabled and it was triggered. However, there is nothing happened(turn on LED). 

WhatsApp Image 2022-05-16 at 6.08.57 PM.jpeg

What did I miss? Thank you.

Best Regards,

Leon

0 Likes
1 Solution
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello Leon,

It's a user hook function intended for users to implement their own exception handling mechanism. Hence you'll find switch cases with no code. User should extend their code there.

Regards,

Prudhvi.

View solution in original post

0 Likes
5 Replies
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

We're unable to access the link that you shared. Can you please share in accessible format?

You may refer to the below link for code examples related to Trap available from Infineon with the name CPU_Trap_Recognition_1_KIT_xxx:

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples

Regards,

Prudhvi.

0 Likes
TBencher
Level 6
Level 6
25 solutions authored 25 likes received 5 questions asked

Hi Prudhvi,

the link is accessible.

Best regards,

TBencher

0 Likes
TBencher
Level 6
Level 6
25 solutions authored 25 likes received 5 questions asked

Hi leonng,

 

that could have several reasons. Please could you provide the whole code segment?
Which Trap Class and Trap ID did you use in your code?

Best regards,

TBencher

 

0 Likes
leonng
Level 3
Level 3
First like received First like given 10 questions asked

Thank you for your response.

Link: http://doc.tasking.com/act/illd_1_0_0_11_0/TC23x/html/group___ifx_lld___cpu___trap___usage.html

Class: non-Maskable Interrupt (NMI)

Actually, it can trigger the NMI. Then, the code is operating, when it is put in the library file "ifxCpu_Trap.c", like below.

leonng_0-1652928796333.png

The code that copies from ILLD seems meaningless:

leonng_1-1652929130040.pngleonng_2-1652929154471.png

Did I miss something?

There is another related question post on https://community.infineon.com/t5/AURIX/SPI-exchange-during-a-Trap/m-p/349870#M7617. Would you mind giving me some help or idea? Thank you.

I'm trying to read the error list from TLF35584 after it triggers NMI. Since I use SPI interrupt, it causes the SPI to keep busy.

Is there a command to end the NMI and go to another function? Or any other simple way?

Best regards,

Leon

0 Likes
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello Leon,

It's a user hook function intended for users to implement their own exception handling mechanism. Hence you'll find switch cases with no code. User should extend their code there.

Regards,

Prudhvi.

0 Likes