Question
freertos.c uses undefined __weak attribute
Posted on June 25, 2017 at 23:49
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 */
&sharpdefine __weak __attribute__((weak))/* USER CODE END Includes */Can you reproduce the problem?
#freertos #stm32cubemx #linux #gcc