Have you set correct HCLK frequency in Run Configuration -> Debugger -> SWV (Enable)-> Core Clock? On YouTube examples show 80MHz but your board may have different default set - for example 216MHz. Check it in *.ioc -> Clock Configuration -> HCLK (MH...