Skip to main content
Visitor II
March 31, 2021
Question

STM32H745 CM4 FreeRTOS scheduler takes a long time getting started

  • March 31, 2021
  • 2 replies
  • 1172 views

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?

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 5, 2021

    Hello @BVu​,

    Can you share your example for further check ?

    Thanks in advance.

    Walid

    BVuAuthor
    Visitor II
    May 6, 2021

    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.

    Visitor II
    May 7, 2021

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