Skip to main content
LSang.11
Associate
Dec 2, 2020 7:46 AM UTC
Solved

STM32 Self reset

Is there a way to self reset other than watchdog?

Without external pull-up resistance

I want to keep the GPIO high even if the MCU performs a soft reset.

Is there any way?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Dec 2, 2020 8:26 AM UTC

Call NVIC_SystemReset() for software reset, but no reset will retain the pins settings in GPIO, including pull-ups.

https://community.st.com/s/question/0D53W00000PTFkaSAH/gpio-retention-method

JW

2 replies

Peter BENSCH
ST Technical Moderator
Dec 2, 2020 8:18 AM UTC

Yes, please read the reference manual of the respective device for the section Power Reset, which contains all sources for the internal reset.

Regards

/Peter

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.
waclawek.jan
waclawek.janBest answer
Super User
Dec 2, 2020 8:26 AM UTC

Call NVIC_SystemReset() for software reset, but no reset will retain the pins settings in GPIO, including pull-ups.

https://community.st.com/s/question/0D53W00000PTFkaSAH/gpio-retention-method

JW