2022-12-02 08:34 AM
The example code loops continuously in stm32f0xx_hal_rcc.c at line 364 in the while loop. HAL_GetTick() always returns 0
I thought the issue might be not enough volts - but it behaves the same way at 5.5v and 12v.from the bench power supply.
I am running the example code that was originally developed for the IAR ide in STM32CUBEIDE after using the eclipse plugin from IAR to convert it. It's running on Windows 10 through an ST link. I had no luck at all just using the IAR ide.
/* Wait till HSI is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
{
if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
{
return HAL_TIMEOUT;
}
}