FreeRTOS: LED not blinking with Blue Pill board
- March 19, 2026
- 2 replies
- 231 views
Split from USART in Proteus not displaying any characters as this is now a new situation (real hardware; not simulation)
Now as per your advise i have moved from simulation to real hardware can you please why under freertos its not working the led is counitnusly onn instead of blinking?
-
Working behavior:
-
LED blinks correctly without FreeRTOS using a simple while loop in the same setup .
-
Flashing and debugging via ST-LINK works without issues.
-
-
Problem:
-
When FreeRTOS is enabled, the LED stays continuously ON instead of blinking under the same hood .
-
-
CubeMX configuration:
-
FreeRTOS enabled (CMSIS V2)
-
Default task created
-
USE_NEWLIB_REENTRANT enabled in FreeRTOS advanced settings
-
SYS timebase tested with:
-
SysTick
-
TIM1
-
-
GPIO PC13 configured as:
-
Output ( that is fine as it worked without freertos but stays counitnuoly on with freertos )
-
-
-
Code behavior:
-
Using osDelay() inside the task
-
Same toggle logic works outside FreeRTOS but not inside
-
-
What I have tried:
-
Switching between SysTick and TIM1 timebase
-
Re-generating code multiple times
-
Verifying task loop logic
-
Replacing HAL_Delay with osDelay
-
-
Question:
-
Why does the LED remain ON when FreeRTOS is enabled instead of blinking can you please check configurations for freertos ?
-
Is this related to timebase configuration, scheduler issue, or HAL vs RTOS conflict?
-
What am I missing in my configuration ?I m so confused here why it might beahvees like this i have attached the project folder can you please check this and inform where is an actual issue underlying?
-
Any help or suggestions would be appreciated. Thank you.
