Solved
How the System clock is set in the files? I see uint32_t SystemCoreClock = 4000000U in system_stm32l4xx.c however I had set 120MHz in CubeMX for SysClock...
..
..
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.