Disable/Enable Interrupt in Tricore(TC397)

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

cross mob
User13554
Level 1
Level 1
Hello,

I am trying to disable interrupt by using the tasking compiler attribute(__disable() and __enable()). But this does not seem to disable the interrupt. Is there a way through which I can disable interrupt by setting some registers?
I already looked into the target specification of TC3xx , and found that the register address for ICR is 1FE2C. But I did not find the full register layout of this register. I read in some paragraph that , to disable all the interrupts globally,
I should set the ICR.IE bit to '0'. But I did not find the register layout in the specification. Can someone please help me with this?

regards,
Bharath
0 Likes
2 Replies
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
The ICR register is documented in the TriCore Architecture Manual.

Enable and disable interrupts is very straightforward though. Are you sure you're not getting a trap instead of an interrupt? Traps can't be disabled.
LukeJokkim
Level 1
Level 1
First like received 5 sign-ins First question asked

Thank you, it was informative.

0 Likes