Noisy motor at 0 current

Hi everyone,
Long time lurker and a big fan of the work you have done!
Disclaimer I am running custom firwmare and not using SimpleFOC, but this forum has been a great knowledge base in learning about FOC and I am hoping someone here can guide me.
I’m facing an issue on a custom board using a DRV8323 a STM32G4 and a CubeMars RO80 KV105-lite motor. The motor is whining even when I command Iq = 0 Id = 0. Im using SVPWM and alternate reverse sequencing, which essentially means all 3 top side FETs are on 50% of the time and all 3 bottom side FETs are on the other 50%.
If anyone has any clue as to why this could be happening I would appreciate it very much.
I’m currently also in contact with Texas Instruments support via this post:

The posts contains much more information about the measurements i have already performed.

If this post is not appropriate for the SimpleFOC forum I will happily remove it, but I am at my wits’ end trying to solve this issue.

I faced this problem several times before. Once, it is because of my incorrect deadtime setting, and got frequent current spike. Another time, it is my PWM frequency is quite low. In both case, the current oscillating at an audible frequency (~20kHz) is the root issue. Hope this might help you

Hey Rikky, Thanks for your reply. I have tested PWM frequencies from 10kHz to 50kHz with no change. Theoretically my PWM command should result in 0 current in the motor, and the phase current measured with an oscilloscope through my low side shunts and DRV8323 current amplifiers show no current in the phases. Do you have any other clues? Very grateful for your help

I tried soldering a resistor (220 ohm) to each phase and this has completely removed the noise. This is of course not a reliable solution but might provide some insight into where the noise is originating from.