cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Get Blinky Project working With FreeRTOS

andrewralea
Associate

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

10 REPLIES 10

Hello @andrewralea ,

I have reproduced the behavior and it seems the system tick is not active in cmsis_os2.c.

I've escalated the behavior internally for analysis and fix. Internal ticket 203484 not accessible by the community users.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.