Skip to main content
GZini.16
Visitor II
November 21, 2018
Question

Possible bug with ADC configuration

  • November 21, 2018
  • 1 reply
  • 659 views

I want to signal a possible bug in CubeMx version 4.27, in the STM32L4xx HAL library package. In the ADC configuration of the external trigger, the TIM4 TRGO setting does not work.

I think the error is in line 518 of file "stm32l4xx_hal_adc.h". The original is:

#define ADC_EXTERNALTRIG_T4_TRGO   (LL_ADC_REG_TRIG_EXT_TIM4_CH4)

but it should be:

#define ADC_EXTERNALTRIG_T4_TRGO   (LL_ADC_REG_TRIG_EXT_TIM4_TRGO)

This topic has been closed for replies.

1 reply

Amel NASRI
ST Technical Moderator
November 22, 2018

Hello @GZini.16​ ,

Please note that this typo is reported to our development team to implement the fix in stm32l4xx_hal_adc.h.

Thanks for reporting it.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.