2020-02-24 04:59 AM
I design a PCB with a stm32f407.
Relays come into play shortly after debug starts. sometimes the debug fails and closes when the relay activates. What should I do to prevent the debug from closing?
relays are driven with 24 volts and lm2803.
The st link is connected to the processor by serial wire.
I tried with clone stlink V2 and Stlink V3.
2020-02-24 05:31 AM
This is EMI, electromagnetic interference. Rething your wiring, try to keep relay and signal line apart and also think where switching current flow and iof switching shifts your grounds.
2020-02-24 05:40 AM
Proper decoupling of the MCU power supply from the 24V supply line, proper back EMF suppression near the relay coils, and the driving MCU ouputs.
Optimally, as little intersection of the relay section with the MCU section on the PCB.