AURIX ESR wake-up pin problem

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

cross mob
User16898
Level 4
Level 4
hi,
I've got problem with ESR interruption in standby/run mode.

I'm recently configuring standby mode on aurix Tc222.
Data sheet says that ESR1 pin can generate interruption to wake-up microcontroller and can as well work as general input output.
I want to use this as wake-up trigger as well as general I/O that generates interruptions in run mode.

datasheet says also that ESR pins are handled by ERU module (Chapter 8.4.1.2) .
The problem is that, ERU module, neither Scu module, hasn't got any references, except few bit fields in register headers files(iLLD), to this pin .
I can only configure Scu module that concern few ESR registers in wake-up/standby mode.
Datasheet says very few about software configuration in standby and nothing about using it in run mode.

Where can I find information, how to configure it ?
0 Likes
1 Reply
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Hi Lukas_G. There's a demo for the ERU in the latest iLLD - see ScuEruDemo, \0_Src\AppSw\Tricore\Demo_Illd\ScuEruDemo.c.

To use ESR1 as a wakeup, try setting ESR1 as a wakeup (PMSWCR0.ESR1WKEN=1), and then switch to Standby Mode (PMCSR0.REQSLP=1).
0 Likes