ADC sporadic fails when USB communication
I am working on a new PCB/platform based on the STM32H730 MCU.
In general, all peripheral drivers work well, using Cube MX.
But I have a problem with the ADC sampling:
I quite often see errors on the ADC sampling, when USB is connected to PC.
But only when the communication between the two are running.
When USB is just connected, I don't see any errors.
But as soon as the communication starts, the errors starts to show up.
I use 5 ADC channels, sampled in a sequence.
In 99,9% of the cases, it is the same channel and almost the same ADC value: 65 +/- 2.
Sampling frequency is 100 ms, and the error shows up appr. twice every minute.
But then sometimes it can be 15 minutes without errors.
The ADC values are read from this IRQ:
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
Why does the USB communication influence on the ADC sampling?
Thanks for any input!
