Updated!!!
NVIC_SetPriority(SysTick_IRQn, 0);
for systick delay to work