AnsweredAssumed Answered

freertos.c uses undefined __weak attribute

Question asked by riggs.rob on Jun 25, 2017
Latest reply on Apr 10, 2018 by stefan enoksson

I am using STM32CubeMX 4.21.0 for STM32L4.  When using FreeRTOS with tickless support, the freertos.c file is generated with functions decleared __weak, but this macro is not defined.  I am generating for GCC.  I am running on Linux.

 

__weak void PostSleepProcessing(uint32_t *ulExpectedIdleTime)
{
/* place for user code */
}

I am getting annoyed at having to add

/* USER CODE BEGIN Includes */ 
#define __weak __attribute__((weak))
/* USER CODE END Includes */

 

Can you reproduce the problem?

Outcomes