AnsweredAssumed Answered

STM32L0 Replace all HSI48 with HSI16 ???

Question asked by dvorak.peter on Oct 13, 2016
Latest reply on Oct 18, 2016 by dvorak.peter
A quick scan of my STM32Cube_FW_L0_V1.7.0 directory shows:

Search "HSI48ON" (2894 hits in 1042 files)
  C:\Users\PD\STM32Cube\Repository\STM32Cube_FW_L0_V1.7.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l052xx.h (5 hits)
     Line 3609: #define RCC_CRRCR_HSI48ON_Pos            (0U)                                  
     Line 3610: #define RCC_CRRCR_HSI48ON_Msk            (0x1U << RCC_CRRCR_HSI48ON_Pos)       /*!< 0x00000001 */
     Line 3610: #define RCC_CRRCR_HSI48ON_Msk            (0x1U << RCC_CRRCR_HSI48ON_Pos)       /*!< 0x00000001 */
     Line 3611: #define RCC_CRRCR_HSI48ON                RCC_CRRCR_HSI48ON_Msk                 /*!< HSI 48MHz clock enable */
     Line 3611: #define RCC_CRRCR_HSI48ON                RCC_CRRCR_HSI48ON_Msk                 /*!< HSI 48MHz clock enable */
...


It seems that the STM32L0 sample code was copied from a different family.

Is it safe to replace all 2894 typos automatically ?

Is this just a cosmetic problem or a sign of poor quality control ?

Can the  STM32L0 HAL and Low-layer drivers  be trusted ?


Peter

Outcomes