Solved
This topic has been closed for replies.
so i put a bigger decoupling cap on the vdd vss for the mcu and it works now and i noticed that you have to clear bit 18 before setting bit 16 in the RCC->CR
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.