cancel
Showing results for 
Search instead for 
Did you mean: 

[bug] STM32L100 systick misconfigured when using RCC LL driver

schperplata
Associate III

CubeMX systick initialization on STM32L100RC (DISCOVERY board) is invalid when used with RCC LL library.

Steps to reproduce:

  • open CubeMX and select STM32L100 DISCOVERY board
  • init peripherals with default state
  • project settings:
    • advanced mode
    • .c/.h pair output code selected
    • LL RCC driver selected
    • Tested with KEIL project or Makefile + GCC
  • Toggle led with 1sec delay, check time with HAL_GetTick()

If I add: HAL_InitTick(TICK_INT_PRIORITY); just after /* USER CODE BEGIN 2 */

in main.c main(), systick is configured properly.

0 REPLIES 0