AnsweredAssumed Answered

STM32CubeMX FreeRTOS and __weak

Question asked by Jive Tihs on Sep 13, 2017
Latest reply on Feb 1, 2018 by Jive Tihs

When enabling the FreeRTOS idle hook STM32CubeMX generates a function with the following prototype in the freertos.c file:

 

__weak void vApplicationIdleHook( void )

 

However __weak isn't defined in any one of the included header files (I'm using GCC with Makefile target) so the file can't be compiled until defining the __weak as __attribute__((weak)) somewhere.

Outcomes