Skip to main content
Explorer
May 6, 2024
Question

SW RESET while retaining particular GPIO state

  • May 6, 2024
  • 1 reply
  • 1181 views

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 topic has been closed for replies.

    1 reply

    Graduate II
    May 6, 2024

    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

    yuri CHAuthor
    Explorer
    May 6, 2024

    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.