AnsweredAssumed Answered

FreeRTOS on STM32F1 falls through osKernelStart()

Question asked by o_neill.daniel on May 2, 2015
Latest reply on May 13, 2015 by Fred C
I am using the STM32F1DISCOVERY and generating a project for IAR from STM32CUBEMX.

I have changed the configureation to use timers and added a toggle LED command in each of the default task and timer methods, however no LEDs blink.

When I break I'm in the for loop below osKernelStart() that the code should never get to....

Looking deeper into this in vTaskStartScheduler() (tasks.c) it makes it all the way to the bottom where there is following comment and code

        /* This line will only be reached if the kernel could not be started,
        because there was not enough FreeRTOS heap to create the idle task
        or the timer task. */
        configASSERT( xReturn );

I increased the configTOTAL_HEAP_SIZE in FreeRTOSConfig.h from 2000 to 4000 but this didn't amke a difference.

Thoughts anyone?

Outcomes