cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger ADC3 injected conversion from HRTIM master timer?

JMall
Associate II

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.

2 REPLIES 2

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
JMall
Associate II

I'll try that.

Thanks!