cancel
Showing results for 
Search instead for 
Did you mean: 

debug breaks when the relays operate. The system continues to run

Muhammed Güler
Senior III

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.

2 REPLIES 2
Uwe Bonnes
Principal III

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.

Ozone
Lead

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.