STM32L4x3 GPIO Bank D and E enable mask not correct
Posted: Wed Jul 28, 2021 3:36 pm
The STM32L4x3 registry has the STM32_HAS_GPIOD and the STM32_HAS_GPIOE set to TRUE however the enable mask for the GPIO is not set correctly
The STM32_GPIO_EN_MASK is set to
But it should be
Code: Select all
/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
The STM32_GPIO_EN_MASK is set to
Code: Select all
#define STM32_GPIO_EN_MASK (RCC_AHB2ENR_GPIOAEN | \
RCC_AHB2ENR_GPIOBEN | \
RCC_AHB2ENR_GPIOCEN | \
RCC_AHB2ENR_GPIOHEN)
But it should be
Code: Select all
#define STM32_GPIO_EN_MASK (RCC_AHB2ENR_GPIOAEN | \
RCC_AHB2ENR_GPIOBEN | \
RCC_AHB2ENR_GPIOCEN | \
RCC_AHB2ENR_GPIODEN | \
RCC_AHB2ENR_GPIOEEN | \
RCC_AHB2ENR_GPIOHEN)