I designe my project using STM32F103RBT6 with 8 Mhz external crystal , and im using STM32CubeMX 4.21 .when i select HSE in RCC i have problem. when i debug the program , i have problem here:
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
but when using HSI all things fine,
what's the problem and How can i fix it?