Skip to main content
Visitor II
January 10, 2022
Question

Define error in stm32l4xx_hal_exti.h

  • January 10, 2022
  • 2 replies
  • 858 views

Hi everybody,

I think I found a bug in stm32l4xx_hal_exti.h at the definition of the GPIO-ports:

  • #define EXTI_GPIOA 0x00000000u
  • #define EXTI_GPIOB 0x00000001u
  • #define EXTI_GPIOC 0x00000002u
  • #define EXTI_GPIOD 0x00000003u
  • #define EXTI_GPIOE 0x00000004u
  • #define EXTI_GPIOF 0x00000005u
  • #define EXTI_GPIOG 0x00000005u
  • #define EXTI_GPIOH 0x00000007u
  • #define EXTI_GPIOI 0x00000008u

The definition for EXTI_GPIOG is wrong!!! When trying to activate EXTI for PortG you actually activate it for port F in SYSCFG->EXTICR.

Could you please fix this?

Best regards

Markus

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 11, 2022

    Thank you Markus, for pointing this out!

    Regards

    /Peter

    @Sara BEN HADJ YAHYA​ Please forward this to the library managers.

    @Imen DAHMEN​ 

    Technical Moderator
    January 11, 2022

    Hello @Community member​ and @Peter BENSCH​ 

    Thank you for bringing this issue to my attention.

    Internal ticket number 120638 is submitted to fix this error in the coming release of CubeL4 MCU package.

    (PS: number 120638, this is an internal tracking number and is not accessible or usable by customers).

    Thanks

    Imen