STM32L051 SYSCLK definition error Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
alexblack
Posts: 276
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 32 times
Contact:

STM32L051 SYSCLK definition error

Postby alexblack » Sat Jul 22, 2017 12:22 pm

In file os/hal/ports/STM32/STM32L0xx/hal_lld.h there is an error in line 894:

Code: Select all

...
886 /**
887  * @brief   System clock source.
888  */
889 #if STM32_NO_INIT || defined(__DOXYGEN__)
890 #define STM32_SYSCLK                2100000
891 #elif (STM32_SW == STM32_SW_MSI)
892 #define STM32_SYSCLK                STM32_MSICLK
893 #elif (STM32_SW == STM32_SW_HSI16)
894 #define STM32_SYSCLK                STM32_HSI16CLK
895 #elif (STM32_SW == STM32_SW_HSE)
896 #define STM32_SYSCLK                STM32_HSECLK
897 #elif (STM32_SW == STM32_SW_PLL)
898 #define STM32_SYSCLK                STM32_PLLCLKOUT
900 #else
901 #error "invalid STM32_SW value specified"
902 #endif
...

The line 894 must be :

Code: Select all

#define STM32_SYSCLK                STM32_HSI16DIVCLK

This need for the option "STM32_HSI16_DIVIDER_ENABLED TRUE".

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: STM32L051 SYSCLK definition error

Postby RoccoMarco » Sun Jul 23, 2017 2:54 pm

I will take a look into this
Ciao,
RM

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: STM32L051 SYSCLK definition error  Topic is solved

Postby RoccoMarco » Wed Jul 26, 2017 5:50 pm

Fixed as Bug 866
Ciao,
RM


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 17 guests