STM32G474 Unable to initialize more than one ADC
Hi All,
I'm trying to setup 2 ADCs in continous mode but I'm failing miserably.
In CubeMX I set the first ADC in continuous mode, triggered by software, then HAL_ADC_Start_IT(&hadc1); and it works as expected (I have a callback to read the value).
Then, I go to the second ADC, setup the samme manner as the first one, but it does not work, only the first interrupt is triggered.
HAL_ADC_Start_IT(&hadc1); //only this Interrupt works
HAL_ADC_Start_IT(&hadc2);If I change the order of the calls (hadc2 first) the first one called works and the second is never triggered.
Is there any special caveat to activate both ADCs? I'm starting to consider the possibility of this board uses a bad clone.
