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

AURIX™ Forum Discussions

hmkum
Level 2
10 replies posted 5 replies posted 5 questions asked
Level 2

Hello,

we are using Aurix TC367D device for our project. We need to keep some variables unchanged after waking up from standby mode. So, we tried to use DLMU Ram area as Standby-Ram which has the start address at 0x90002000. We can read and write NOINIT variables at this memory after Standby-Wakeup process. However, if we write some variables into .data section (global initialized variables), we want to initialize them only at hard reset. Therefore, we need to detect reset reason at startup code certainly. We set the MCU to Standby mode using Mcu_SetMode(STANDBY) function and we use ESR0 pin to wake the MCU up. We can read the CBx, PORST, STBYR reset reasons from SCU_RSTSTAT register at startup, but we cannot detect ESR0 reset reason in the same way. ESR0 part of the SCU_RSTSTAT register but is not set when our system resets the CPU from ESR0 pin to wake up. Also, we are using HSM. Is this affect reset reason? 

We are asking how we can detect ESR0 reset from SCU_RSTSTAT register. Are there any additional configurations we are supposed to do, to detect ESR0 reset? 

0 Likes
1 Reply
Nambi
Moderator
Moderator 250 sign-ins 100 replies posted 10 likes received
Moderator

Hi,

As this is part of MC-ISAR, which is licensed, this topic cannot be discussed in a public forum. We request you to please get in touch with your local Infineon, distributor, or software reseller contact.

Best Regards.

0 Likes