Skip to main content
Visitor II
January 16, 2022
Question

How should I do a power cycle?

  • January 16, 2022
  • 3 replies
  • 3461 views

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.

    3 replies

    Super User
    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.

    Vmere.1Author
    Visitor II
    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.

    Super User
    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.
    Technical Moderator
    January 17, 2022

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

    Graduate II
    January 17, 2022

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

    Vmere.1Author
    Visitor II
    January 17, 2022

    Yes. This is my target.

    And I should implement this. Not implemented yet.

    Graduate II
    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