How to trigger ADC3 injected conversion from HRTIM master timer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-21 6: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.
- Labels:
-
ADC
-
HRTIM
-
STM32Cube MCU Packages
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-21 7: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-21 7:59 AM
I'll try that.
Thanks!
