STM32CubeIDE HAL_Delay not working
I found my error. I have a jumper on my board to select the boot mode. I did not connect any of the pins (so no connection to VSS or VCC). This somehow resulted in the error described above. As soon as I set the jumper to connect Pin BOOT to VCC the clock started to work.