https://community.st.com/t5/stm32-mcus-products/how-to-reset-stm32-when-a-hardfault-is-triggered/td-p/180734