Part Number: TMS320F28375D
Other Parts Discussed in Thread: C2000WARE
Hi,
I am using the "TMS320F28375D" MC. After power up I would like to clear the POR & XRSn bits of the "RESC" registre but for some reason they don't clear. Based on the chip's datasheet (Literature Number: SPRUHM8K (DECEMBER 2013 – REVISED MAY 2024) under the following section on page 397, I should be able to clear these bits after power up but I can't get them cleared.
RESC Register (Offset = 80h) [Reset = 00000003h]
I tried the following two approches and in both attemps the value stored in "resetSource" variable after clear attemp is equal to 3 (11b). Please advise.
1)
resetSource = SysCtl_getResetCause();
SysCtl_clearResetCause(resetSource);
resetSource = SysCtl_getResetCause();
2)
resetSource = SysCtl_getResetCause();
SysCtl_clearResetCause(SYSCTL_CAUSE_POR | SYSCTL_CAUSE_XRS);
resetSource = SysCtl_getResetCause();
Regards,
Mehran