AnsweredAssumed Answered

STM32F091VB HSE probem

Question asked by Peden.Fabrice on Jul 22, 2016
Latest reply on Jul 22, 2016 by Peden.Fabrice
Hi everybody,

On my project, I'm using a STM32F091VB but I have a problem with the crystal ( ref 7B-12.000MEEQ-T  brand : TXC).
I have measured voltage between GND and crystal and I have 1.9V (so I think this one is working). I used also two capacitors of 20pF (I have tried with 10pF) but it seems not to work.
My pin BOOT0 is tied to GND with 10k resistor (I have also check the voltage on this pin).
My configuration was made by STM32CubeMX. When I go step by step, my fimware does :

RCC_OscInitTypeDef RCC_OscInitStruct;
 RCC_ClkInitTypeDef RCC_ClkInitStruct;
 RCC_PeriphCLKInitTypeDef PeriphClkInit;
 RCC_OscInitStruct.HSEState = RCC_HSE_ON;
 RCC_OscInitStruct.LSEState = RCC_LSE_ON;
 RCC_OscInitStruct.HSIState = RCC_HSI_ON;
 RCC_OscInitStruct.HSI14State = RCC_HSI14_ON;
 RCC_OscInitStruct.HSICalibrationValue = 16;
 RCC_OscInitStruct.HSI14CalibrationValue = 16;
 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_OFF;
 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)

and When it goes HAL_RCC_OscConfig(), the function HAL_GetTick always sends 0, uwTick is never incrementing.

If you have any suggestions, thank you in advance.