Dec 20, 2022
03:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 20, 2022
03:56 PM
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 photo
Solved! Go to Solution.
1 Solution
Dec 20, 2022
06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 20, 2022
06:21 PM
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
3 Replies
Dec 20, 2022
06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 20, 2022
06:21 PM
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
Dec 20, 2022
06:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 20, 2022
06:46 PM
this bit to clear only status bits for cold reset what about the other status bits ?
Dec 20, 2022
06:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 20, 2022
06:50 PM
Please refer to RSTCON2 in user manual.