2014-02-06 01:25 AM
Dear all,
I have been reading manuals on the STM32F1xx and STMF2xx since a while and I have spent hours evaluating this microcontroller. There is one information I am still looking for and never seen, maybe someone could help me about that: Is there any way embedded in the STM32 to differentiate and know for sure that, after reset, we came from a power-up (cold reset) or from a warm reset? Thanks in advance for your help, Thierry2014-02-06 01:35 AM
Hi
Sorry, I am not familiar with the devices you mentioned. The STM32F4 parts have a register ''RCC clock control & status register (RCC_CSR)'' which contain the status about how the processor was reset. Check the reference manual, section ''Power controller (PWR)''2014-02-07 07:37 AM
I thank you for your answer.
I wonder why I missed it, it was big enough... Moreover I guess that ''warm reset'' is not precise enough since there are many causes of ''warm'' reset. I had another question but I am going to open another item for that. Thanks for your help anyway, Cheers Thierry2014-02-07 09:07 AM
I wrote up a bit about this a while ago:
http://www.micromouseonline.com/2012/03/29/stm32-reset-source/#axzz2sZ5WstPh