STM32F070 USB Not working, HSE time out delay
STM32CubeIDE Version: 1.15.1
Chip : STM32F070CBT6
HSE : 16MHz
Problem : USB Not working
Observation : HSE Not starting and getting time out delay in "RCC_OscInitStruct" when using HSE and PLLCLK for sysclk ( with and without CSS). MCO output is 8Mhz if error handles is commented.
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
I crosschecked the connections PCB and tried 16Mhz and 24 Mhz Crystals (both 300uW and 160uW)
If i bypass the error handler, then cpu runs @8Mhz and USB shown in device manager but as unknown device.
Driver updates are (stlink009)not working...
HSE Time out Values : varied from 100 to 10000
The same problem exist without USB and any other peripheral. Only HSIRC 8Mhz is working
Can anybody help to solve the issue?
