Hello, FreeRTOS won’t build on GCC if Link-Time Optimization (-flto) is set. (issue for STM32 ARM CM-7)
I consistently get this error in port.c:427: undefined reference to vTaskSwitchContext).
The vTaskSwitchContext() function is clearly defined in tasks.c. This problem can be fixed in tasks.h if vTaskSwitchContext is declared thus at line 2172: void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION attribute((used)); For some reason the double underscores before and after the word attribute do not appear in the post.
Can you fix this so that this is include in the next release? I realize this is GCC dependent so you’d have to make it apply only for a GCC build.