freertos build error

bachadamin wrote on Tuesday, March 07, 2017:

Hello guys,
when I build my freertos stm32f0 project i found an error that says" padding struct to align ‘uxDummy10’ [-Werror=padded]"

rtel wrote on Tuesday, March 07, 2017:

Which version of FreeRTOS are you using?
Which compiler are you using?
Which file is the offending line in?

bachadamin wrote on Tuesday, March 07, 2017:

bachadamin wrote on Tuesday, March 07, 2017:

FreeRTOS v9
ARM GCC
FreeRTOS.h

rtel wrote on Tuesday, March 07, 2017:

I suspect you have configMAX_TASK_NAME_LEN set to a value that does not end on a 4 byte alignment, but even so the compiler should then adjust the allignment of the following members, which it is apparently doing. I don’t think that should be an error though, just normal behaviour, you have just set the compiler to tell you it is an error with -Werror=padded.

bachadamin wrote on Wednesday, March 08, 2017:

Now I have this problem
undefined reference to vTaskStartScheduler' undefined reference to xTaskCreate’
even if i included all the required headers !!!

rtel wrote on Wednesday, March 08, 2017:

Including the headers does not include the functions. Are you building
FreeRTOS/source/tasks.c?