2019-02-21 06:11 AM
I'm trying to have the HRTIM master timer trigger an injected conversion of ADC3 on the STM32H753.
I'm calling HAL_ADCEx_InjectedConfigChannel() with .ExternalTrigInjecConv = ADC_EXTERNALTRIGINJEC_HR1_ADCTRG2. This call halts in an assert_param() that invokes the IS_ADC_EXTTRIGINJEC() macro which does not include the ADC_EXTERNALTRIGINJEC_HR1_ADCTRG2 value, even though ADC_EXTERNALTRIGINJEC_HR1_ADCTRG2 is defined.
By comparison the IS_ADC_EXTTRIG() macro (for regular conversion) does include ADC_EXTERNALTRIG_HR1_ADCTRG1.
Wondering what I'm doing wrong.
Thanks.
2019-02-21 07:50 AM
Ok, and if you removed the assert and just test actual functionality, does it work?
I would go with the wiring/routing defined in the Reference Manual
2019-02-21 07:59 AM
I'll try that.
Thanks!