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

HAL_RCC STM32L4 bug in definition

  • September 7, 2017
  • 2 replies
  • 694 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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ST 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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks