Skip to main content
Explorer II
February 14, 2025
Solved

Can't Get Blinky Project working With FreeRTOS

  • February 14, 2025
  • 2 replies
  • 2258 views

I am new to FreeRTOS ( RTOS in general, although I am very familiar with baremetal) and am following along with this video:https://www.youtube.com/watch?v=CdpgqpuPSyQ&t=4s 

I am using a STM32F3DISCOVERY board so I had to make some minor tweaks to follow along, seemingly just pin numbering. I am using the default pin configurations and clock configuration. I am using TIM6 as Timebase source. I cannot seem to figure out why my LEDs are not blinking. I created a baremetal project to confirm the config of the pins is good and there I can get them toggling. I see the TIM6 CNT incrementing and wrapping so that is working. I tried to use breakpoints to see if I ever get back to my task and aside from the first hit during initialization, I never get back.

Not sure what I did wrong, but it appears my tasks only occur once and then terminate but I cannot figure out why. Any tips on how to debug this? Thank you

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Issue fixed in CubeMx 6.14.0 (already available on ST website)

    2 replies

    Super User
    February 14, 2025

    I am using TIM6 as Timebase

    in main.c, there is no reference to TIM6, but TIM4. 

    hth

    KnarfB

    Explorer II
    February 14, 2025

    I used TIM6 originally like the demo but after some debugging effort I played around with trying others, meant to change it back to TIM6 before uploading that is my mistake. I do not believe it is the issue however

    Super User
    February 14, 2025

     I do not believe 

    seeing is believing.

    Set a breakpoint at the timer callback and check that it is called. The interrupt handler is in the *_it.c file. Check that everything is consistent.

    hth

    KnarfB

    mƎALLEmAnswer
    Technical Moderator
    March 6, 2025

    Issue fixed in CubeMx 6.14.0 (already available on ST website)