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

AURIX™ Forum Discussions

Mmmmmm
Level 3
Level 3
First like given 10 sign-ins 10 questions asked

How can i clear RESET STATUS BITS in RSTSTAT REG which it (rh) bits , and the only bits can i clear those which mentioned in photoScreenshot 2022-12-21 015127.png

Screenshot 2022-12-21 015524.png

0 Likes
1 Solution
dw
Moderator
Moderator
Moderator
100 likes received 750 replies posted 10 likes given

 

IFX_INLINE void IfxScuRcu_clearColdResetStatus(void)
{
    uint16 password;

    password = IfxScuWdt_getCpuWatchdogPasswordInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()]);
    IfxScuWdt_clearCpuEndinitInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()], password);
    /* Clear Cold Reset status */
    MODULE_SCU.RSTCON2.B.CLRC = 1U;
    IfxScuWdt_setCpuEndinitInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()], password);
}

 

Please refer to above code sample for clear RSTCON2.CLRC

View solution in original post

0 Likes
3 Replies
dw
Moderator
Moderator
Moderator
100 likes received 750 replies posted 10 likes given

 

IFX_INLINE void IfxScuRcu_clearColdResetStatus(void)
{
    uint16 password;

    password = IfxScuWdt_getCpuWatchdogPasswordInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()]);
    IfxScuWdt_clearCpuEndinitInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()], password);
    /* Clear Cold Reset status */
    MODULE_SCU.RSTCON2.B.CLRC = 1U;
    IfxScuWdt_setCpuEndinitInline(&MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()], password);
}

 

Please refer to above code sample for clear RSTCON2.CLRC

0 Likes
Mmmmmm
Level 3
Level 3
First like given 10 sign-ins 10 questions asked

this bit to clear only status bits for cold reset what about the other status bits ?

0 Likes
dw
Moderator
Moderator
Moderator
100 likes received 750 replies posted 10 likes given

Please refer to RSTCON2 in user manual.

0 Likes