cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeL4 V1.13.0: Bug in the definition of ADC_EXTERNALTRIG_T4_TRGO (in stm32l4xx_hal_adc.h)

dino0410
Associate

STM32L476RCTx

STM32Cube FW_L4 V1.13.0

stm32l4xx_hal_adc.h:

#define ADC_EXTERNALTRIG_T4_TRGO   (LL_ADC_REG_TRIG_EXT_TIM4_CH4)      /*!< ADC group regular conversion trigger from external IP: TIM4 TRGO. Trigger edge set to rising edge (default setting). */

#define ADC_EXTERNALTRIG_T4_CC4    (LL_ADC_REG_TRIG_EXT_TIM4_CH4)       /*!< ADC group regular conversion trigger from external IP: TIM4 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */

must be

#define ADC_EXTERNALTRIG_T4_TRGO   (LL_ADC_REG_TRIG_EXT_TIM4_TRGO)      /*!< ADC group regular conversion trigger from external IP: TIM4 TRGO. Trigger edge set to rising edge (default setting). */

#define ADC_EXTERNALTRIG_T4_CC4    (LL_ADC_REG_TRIG_EXT_TIM4_CH4)       /*!< ADC group regular conversion trigger from external IP: TIM4 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */

2 REPLIES 2
Imen.D
ST Employee

Hello @dino0410​ ,

Thank you for your reported issue.

We confirm this bug and raise it internally for fix.

The definition of ADC_EXTERNALTRIG_T4_TRGO should be updated as followed:

#define ADC_EXTERNALTRIG_T4_TRGO (LL_ADC_REG_TRIG_EXT_TIM4_TRGO).

Kind Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi,

This issue is fixed in the new release STM32CubeL4 V1.14.0.

Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen