vTaskStartScheduler gives error

This is my first time trying freeRTOS, I am trying to use it on my atmega32 AVR microcontroller, I am using Atmel Studio as my IDE.
I get these errors when i try to compile my project

this is my code


  • freeRTOS_tut.c
  • Created: 2/17/2020 7:09:52 PM
  • Author : Matt Belle
    #define F_CPU 8000000UL
    #include <avr/io.h>

#include “FreeRTOS.h”
#include “task.h”

TaskHandle_t ledBlinkTaskHandler = NULL;

void ledBlink(void* p){
/* Define all variables related to ledBlinkingtask1*/
const uint8_t blinkDelay = 50 ;
/* make PB0 work as output*/
DDRB |= (1<<PB0);
/* Start the infinite task 1 loop */
while (1)
PORTB ^= (1<<PB0); //toggle PB0
vTaskDelay(blinkDelay); //wait some time

int main(void)

xTaskCreate( ledBlink, “LED1”, configMINIMAL_STACK_SIZE, NULL, 1, &ledBlinkTaskHandler);


/* Replace with your application code */
while (1) 


Anything that starts ‘Application’ is a callback the application writer must provide if that feature is enabled. See https://www.freertos.org/a00016.html If you don’t want to use an Idle hook (callback) then set configUSE_IDLE_HOOK to 0 in FreeRTOSConfig.h. https://www.freertos.org/a00110.html#configUSE_IDLE_HOOK

Thank you for your fast and helpful reply Richard. @rtel
Can I ask you one more thing :slight_smile:
What do you recommend me to do to better understanding freeRTOS and learn how to use it ?

You could start here. Although the book is out of date so doesn’t contain information on the latest features it is still a good getting started resource. https://www.freertos.org/Documentation/RTOS_book.html