Thank you for your response, but in case of Bluepill CubeIDE cannot find DWT->LAR member of DWT. The way Tesla DeLorean suggested is working at stm32f103, too.
Thank you for the fast response. I will give try. However my actual code is similar, but hangs in 'while'' statement:void DWT_Delay(uint32_t us) // microseconds
{
uint32_t startTick = DWT->CYCCNT,
delayTicks = us * (SystemCoreClock/1...