Problems using the STM32F429 HAL_Delay() in Embedded Wizard

41 views
asked Jan 27 in Embedded Wizard Studio by MikeZ
Hi All,

We have developed an  application which is working reasonably well, I added some code written by a colleague which froze when called  We tracked down the issure to the calling of  the ST  HAL API HAL_Delay() function. Any insights to the possible cause and solution of this problem would be greatly appreciated. Our application is single threaded.

Thanks.

MikeZ

1 Answer

0 votes
answered Jan 28 by Tim Zierer
Hi MikeZ,

actually the HAL_Delay() function cause, as it implies, a delay. In case of delaying a too long period, the Embedded Wizard update routine cannot refresh the UI often enough. This could look like a freeze, but technically it isn't one. I suggest in your case to use a (FreeRT)OS, to guarantee that Embedded Wizards update cycle can run without beeing delayed by the HAL_Delay() function.

As you already have figured out, your new application and Embedded Wizard probaply runs within the same loop. Thus you have to take care about that applications do not block each other when you're using the HAL_Delay() function.

Best regards,

Tim

Embedded Wizard Website | Privacy Policy | Imprint

...