STM32L431CBT6 blocks in HAL_Delay()
Greetings! I am using STM32 for a very first time. I made my custom PCB with 10MHz oscillator. In the Clock Configuration window I have sellected the PLL and the HCLK is set to 80MHz (max for the uC). The outputs are all 80MHz. So I made a simple blink test program:
/* USER CODE BEGIN WHILE */
while (1)
{
HAL_GPIO_TogglePin(LED_1_GPIO_Port, LED_1_Pin);
HAL_Delay(1000);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
The problem is my code blocks in HAL_Delay(). Here to be precise:
while ((HAL_GetTick() - tickstart) < wait)
{
}
I checked with oscilloscope and the quarz is working! I also tried different interrupt priorities for Sys Tick Timer.
Any other suggestions?
I have no experience with these uC.
Thanks!
