STM32L0xx hal_lld.h 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:

STM32L0xx hal_lld.h error  Topic is solved

Postby alexblack » Fri Mar 03, 2017 6:28 pm

Hello. Current trunk.
file ch3\os\hal\ports\STM32\STM32L0xx\hal_lld.h:

Code: Select all

...
270 #define STM32_LPTIM1SEL_MASK    (3 << 18)   /**< LPTIM1 clock source mask.  */
271 #define STM32_LPTIM1SEL_APB     (0 << 18)   /**< LPTIM1 clock is APB.       */
272 #define STM32_LPTIM1SEL_SYSCLK  (1 << 18)   /**< LPTIM1 clock is SYSCLK.    */
273 #define STM32_LPTIM1SEL_HSI16   (2 << 18)   /**< LPTIM1 clock is HSI16.     */
274 #define STM32_LPTIM1SEL_LSE     (3 << 18)   /**< LPTIM1 clock is LSE.       */
...

STM32L053 has following settings:

Code: Select all

Bits 19:18 LPTIM1SEL: Low-power Timer clock source selection bits
This bit is set and cleared by software.
00: APB clock selected as LP Timer clock
01: LSI clock selected as LP Timer clock
10: HSI16 clock selected as LP Timer clock
11: LSE clock selected as LP Timer clock

Ie line 272 is wrong and must be

Code: Select all

272 #define STM32_LPTIM1SEL_LSI  (1 << 18)   /**< LPTIM1 clock is LSI.    */

May be other L0xx serias MCU has another settings but for the L053 it is.

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L0xx hal_lld.h error

Postby Giovanni » Fri Mar 03, 2017 6:31 pm

Hi,

Thanks, I will verify.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L0xx hal_lld.h error

Postby Giovanni » Sun Mar 26, 2017 1:38 pm

Hi,

Fixed as bug #819.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 22 guests