Sampling Problem when Using ADCs and USB at the same time @STM32G474
Dear ST-community,
in my project I am trying to sample with 4 timer-triggered ADCs simultaneously, what works quite well. Afterwards I am transmitting the data via USB to the PC. As long as I store the data in a buffer and transmit it after the measurement, everything works fine. The Problem arises if the data is transmitted immediatly after the sampling, so if I want to stream the data to the host. If I do this in debug-mode, I receive about 100-400 samples, than the measurement stops. In normal-mode the measurement often doesn't even start. The debugger stops than before the while-loop where I wait for the ADC-Callback to be called.
I think it must be something to do with the USB-Interface since without the transmitting function the measurement doesn't stop. Before USB I used Uart where the TX-Cplt-Callback could be used, but now there is no such possibility.
Does anybody know what the problem is and how to solve this?
Thank you a lot in advance!
Best regards
