trap handlers

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

cross mob
User16898
Level 4
Level 4
Hi,

how can I configure Trap handlers?

So far I can see only this in debugger:
3709.attach

I saw that there are some functions in iLLD that handle traps, what is its's class or type:
IFX_INLINE IfxCpu_Trap IfxCpu_Trap_extractTrapInfo(uint8 trapClass, uint32 tin);
void IfxCpu_Trap_memoryManagementError(uint32 tin);
void IfxCpu_Trap_internalProtectionError(uint32 tin);
void IfxCpu_Trap_contextManagementError(uint32 tin);
void IfxCpu_Trap_assertion(uint32 tin);
void IfxCpu_Trap_systemCall_Cpu0(uint32 tin);

...


How can I use this functions to retrieve information about trap I've enter ?
Working on Tc222L
0 Likes
1 Reply
User16898
Level 4
Level 4
Found the solution,

1. Go to Program Files\TASKING\TriCore v6.3r1\ctc\lib\src
2. run unpack-tc-libc-sources.exe
3. select all files starting with "trap..."
4. copy-paste it somwere to the project and compile.
0 Likes