Inconsistant code generation in STM32CubeMX when using FATFS and FreeRTOS middlewares
The prototype of the generated function by STM32CubeMx when using FATFS is:
int32_t MX_FATFS_Process(void)This cannot be used with FreeRTOS as a task entry function since it has the wrong return and argument type.
The function prototype should be :
void MX_FATFS_Process(void *argument)So that it could be accepted while creating FATFS task:
FatFsTaskHandle = osThreadNew(MX_FATFS_Process, NULL, &FatFsTask_attributes);In the example project provided in STM32Cube MCU Package for STM32L5 series, the function prototype is correct. The code generated by STM32CubeMX does not match this example.
