cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 CM4 FreeRTOS scheduler takes a long time getting started

BVu
Associate III

I'm using STM32H745. Both cores run FreeRTOS 10.2.1. Timebase for CM4 is TIM6, and CM7 is TIM7. For some reason, on CM4, from the time osKernelStart() is called in main() until StartDefaultTask starts to run is about 5 seconds ( i turn an LED on just before osKernelStart() and it's turned off first thing in StartDefaultTask) . The only reason i can think of is that the timebase/tick interrupt don't get going for that amount of time. Other than this startup behavior, CM4 multi tasking seems to be fine. Has anyone seen this?

3 REPLIES 3

Hello @BVu​,

Can you share your example for further check ?

Thanks in advance.

Walid

BVu
Associate III

Hi @Walid ZRELLI​ ,

When i tried to reproduce the problem on a NUCLEO-H745ZI-Q, I discovered that the delay came from StartDefaultTask calling MX_LWIP_Init(). MX_LWIP_Init() has a big delay in it so everything that follows is impacted by the delay. The scheduler starts just fine; there is no problem there. I did open a support request on this matter (Case #:00130082). It has been resolved and closed.

Thanks.

Good news! I'm glad your problem has been resolved