Skip to main content
Vmere.1
Associate III
January 16, 2022
Question

How should I do a power cycle?

Which Pin should I set and reset to make a power cycle happen in STM3G4 or any popular STM32F3xxx.. ??

I have 2 mcu's and with one of it I want to do a power cycle..

I mean to remove the power and connect it again. What should I do here?

This topic has been closed for replies.

10 replies

TDK
January 16, 2022

Power cycle requires you to remove power which will vary based on how your chip is powered. It may not be possible to power cycle the chip independently of other things on the board. You haven’t provided any details about the hardware you’re working with.

Toggling NRST will reset the chip.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Vmere.1
Vmere.1Author
Associate III
January 17, 2022

Toggling Reset will do system reset.

I need a power on Reset, trying to find ways to do it. But really couldn't find out.

And I am using STM32f302vc now.

TDK
January 17, 2022
Power cycle isn’t a software thing. You need to remove power. How you do that depends on your hardware board, which you still haven’t provided. For example, if power is coming via the usb cable, you would need to remove and reply the cable to cycle power.
"If you feel a post has answered your question, please click ""Accept as Solution""."
Peter BENSCH
ST Technical Moderator
January 17, 2022

...or the pin-controlled switching off of the supply voltage via e.g. a transistor.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
LCE
Principal III
January 17, 2022

Do you mean that one of the two controllers stays "alive" and can power down the other controller?

Vmere.1
Vmere.1Author
Associate III
January 17, 2022

Yes. This is my target.

And I should implement this. Not implemented yet.

LCE
Principal III
January 19, 2022

Then you need some more hardware, most importantly a P-channel MOSFET.

Something like this, although when switching 3V with 3V IOs you can leave the npn.

0693W00000JMZC2QAP.png