cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_RCC STM32L4 bug in definition

dulldemolins
Associate
Posted on September 07, 2017 at 17:47

Hi,

I found a bug in the last version of 

stm32l4xx_hal_rcc.h from stm32L4 uC.

file: stm32l4xx_hal_rcc.h/.c

version 1.7.2

&sharpdefine __HAL_RCC_GPIOB_IS_CLK_ENABLED()

it should refer to RCC_AHB2ENR_GPIOBEN instead of RCC_AHB2ENR_GPIOCEN

thanks,

#stm32l4 #cubemx
2 REPLIES 2
Posted on September 07, 2017 at 17:52

Good catch..

#define __HAL_RCC_GPIOB_IS_CLK_ENABLED()       (READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_GPIOCEN) != RESET)

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Imen.D
ST Employee
Posted on September 07, 2017 at 18:00

Hello,

 Thanks for highlighting this issue.

I raised it internally and we will update the fix in coming releases.

Kind Regards

Imen

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