stm32的adc1和adc2可以设置为同步模式,即使ADC1和ADC2配置为独立模式,也需要注意,在调用HAL_ADCEx_MultiModeConfigChannel函数将ADC1配置为独立模式时,ADC1和ADC2必须都失能或者使能时停止ADC转换(Parameters that can be updated when ADC is disabled or enabled without conversion on going on regular group),否则HAL_ADCEx_MultiModeConfigChannel函数执行失败直接退出。
stm32同时使用ADC1和ADC2注意的问题
![](https://img-home.csdnimg.cn/images/20240711042549.png)