I try to debug my PCB, which has STM32G030, with SWD in a 3kHz noisy environment. SWCLK and SWDIO traces have both 22 Ohms series and 10k Ohms pull-up resistors attached to them. As the noise source is activated, STLink-V2 debugger SWD communication freezes. After inspection I have found out that SWD pin header and ribbon cables pick up the radiated 3kHz noise over the air, which in turn hangs SWD communication.
Ribbon and pin header cables are each 10cm long. Thus, there is a 20cm length of unshielded cabling. I have also tried only with 10cm pin header cable with no luck. SWD bitrate is 1.8MHz. STM32G030 is powered from a 5V DC isolated PSU through Texas Instruments 3.3V LDO. SWD probe is powered from PC USB port. In order to establish the communication I connect both my PCB's and SWD probe's GNDs together and leave SWD probe VCC unconnected. 3KHz noise is generated by a commercial AC drive's IGBT triggering. I cannot capture waveforms, because SWD communication hangs as soon as AC drive activates.
How can I remedy this problem? Should I use UART or RS485 based communication for debugging?