I use cubemx to generate clock configAnd I use a flip pin and oscilloscope to check the speed.here is what i didclock settingvoid SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
...
Hello Thanks for your replyI tried again from scratch using cubemx to generate a new project.Also I use a PWM to get the pulse. Starting from brand new project with cubemx.The clock is shows as what supposed to be.And then I copied the code from old ...