Skip to main content
dulldemolins
Visitor II
September 7, 2017
Question

HAL_RCC STM32L4 bug in definition

  • September 7, 2017
  • 2 replies
  • 671 views
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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
September 7, 2017
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 VenmoUp vote any posts that you find helpful, it shows what's working..
Technical Moderator
September 7, 2017
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"".ThanksImen"