Closed velly-simk closed 4 months ago
Hi @velly-simk,
Thank you for this report. The point looks valid. Please note however, that all FreeRTOS applications provided within the STM32CubeF4 firmware are CMSIS OS V1-based.
I'll forward your point to our development teams and get back to you as soon as I have their feedback.
With regards,
When using memory management scheme heap 1 for freertos, compiler gives several warnings for unused variables.
they are: hTask in osThreadTerminate, hTimer in osTimerDelete, hEventGroup in osEventFlagsDelete, hSemaphore in osSemaphoreDelete, hQueue in osMessageQueueDelete,
all of these warnings occur in cmsis_os2.c
Simple solution I'm using locally is to just use the UNUSED(X) macro in the #else blocks of the respective methods.