cancel
Showing results for 
Search instead for 
Did you mean: 

SW RESET while retaining particular GPIO state

yuri CH
Senior

Hello!

 

I am currently working on the stm32h747 dual core microcontroller. 

i have a specific scenario where i must reset the system (i am using the "NVIC_SystemReset()" function for this purpose), however, i want to retain the state of several GPIOs (since they serve as power enable for other systems connected). 

 

is this at all possible? 

 

thanks in advance for your responses.

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Uwe Bonnes
Chief

No NVIC_SystemReset() will reset all peripherals. On some ARM, as e.g. the STM32F103, there is also a NVIC_CoreReset() that only resets the core but keeps the peripherals. I do not check for H7

well what i have done is to set reset using the NVIC_SystemReset() function on the M7 core, while debugging the M4 core and waiting with a breakpoint before the begining of the MX_GPIO_INIT() (expecting, as you said that the state of the GPIO periphirial will not change). the result was that the pins which were in "SET" have became "RESET" before the MX_GPIO_INIT() function.