Take osc frequency from SystemCoreClock variable as it
will correct always.