- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Then, I check the memory and find that ESR1 is enabled and it was triggered. However, there is nothing happened(turn on LED).
What did I miss? Thank you.
Best Regards,
Leon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Prudhvi,
the link is accessible.
Best regards,
TBencher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
The code that copies from ILLD seems meaningless:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.