2010-05-11 10:43 AM
No bits in RCC_CSR at power-on
2011-05-17 04:50 AM
If I poll the RCC_CSR reg at least 3 times I then see the ''reset reason'' bits appear after an unclean reset. Contracted ST app engineers. So far they have not confirmed or denied but, for now, this wfm:
main() { for (int i=0; i<10; i++) if (RCC->CSR & 0xFF000000) break; : :2018-06-05 04:39 AM
I have a similar problem with the RCC->CSR register, especially with the IWDG Reset Status bit.
Time Content of RCC->CSR
After power on and enabling IWDG 0x14000003
Then maybe after a second or less 0x34000003
If the status bits receive a clear right upon reading them for the first time with
RCC->CSR |= RCC_CSR_MASK_RMVF;�?
then the content of the RCC->CSR is 0x20000
Is the information of the reset cause of IWDG lazy loaded into the CSR register?
Have I missed a note somewhere that says something about the timing of this status bit?