2024-05-06 05:49 AM
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.
2024-05-06 06:00 AM
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
2024-05-06 06:15 AM
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.