MCU locks up the moment a relay closes. Are there any tips to stabilize / make the MCU less sensitive to external noise?
We have a board with a STM32G071RBT6. The MCU is controlling a mechanical relay that breaks mains voltage (230V). When the relay closes, this causes the MCU to hiccup in rare occasions: either the core locks up and the WDI resets it, or a NMI excepti...