How can i set or modify trap handler

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

cross mob
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

Hi 

I want to modify the function that is called when a trap occurs.

The trap I want to modify is to be precise, the ESR1 trap.

I'd like to ask what doc should I read to find out which functions are called when a trap occurs, or information about the trap.

I am using TC387AE.

Thanks in advance.

Dawoon kim

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi Kim,

AURIXTC3XX_um_part1_v2.0.pdf,  Section 9.2 Trap Gerneration (TR) describes the TRAPSET TRAPCLR TRAPSTAT TRAPDIS registers which are for ESRx pins' transition to trigger a CPU trap.

Section 9.1.4 Exnternal reset sources and indications, which describes ESR pin functions: reset request trigger / wakeup trigger / reset indication output / trap request trigger

https://www.infineon.com/dgdl/Infineon-AURIX_CPU_Trap_Recognition_1_KIT_TC397_TFT-Training-v01_00-EN...

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

 

About code,  I will reply you if I got any.

 

dw

View solution in original post

1 Reply
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi Kim,

AURIXTC3XX_um_part1_v2.0.pdf,  Section 9.2 Trap Gerneration (TR) describes the TRAPSET TRAPCLR TRAPSTAT TRAPDIS registers which are for ESRx pins' transition to trigger a CPU trap.

Section 9.1.4 Exnternal reset sources and indications, which describes ESR pin functions: reset request trigger / wakeup trigger / reset indication output / trap request trigger

https://www.infineon.com/dgdl/Infineon-AURIX_CPU_Trap_Recognition_1_KIT_TC397_TFT-Training-v01_00-EN...

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

 

About code,  I will reply you if I got any.

 

dw