Skip to main content
JMall
Associate II
February 21, 2019
Question

How to trigger ADC3 injected conversion from HRTIM master timer?

  • February 21, 2019
  • 2 replies
  • 743 views

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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
February 21, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
JMall
JMallAuthor
Associate II
February 21, 2019

I'll try that.

Thanks!