cancel
Showing results for 
Search instead for 
Did you mean: 

Warm reset

tlamotte9
Associate II
Posted on February 06, 2014 at 10:25

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,

Thierry
3 REPLIES 3
chen
Associate II
Posted on February 06, 2014 at 10:35

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)''

tlamotte9
Associate II
Posted on February 07, 2014 at 16:37

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

Thierry

frankfrank956
Associate III
Posted on February 07, 2014 at 18:07

I wrote up a bit about this a while ago:

http://www.micromouseonline.com/2012/03/29/stm32-reset-source/#axzz2sZ5WstPh