The current FreeRTOS in the Cube Repo is V8.x.x. Way down level. Is there a reason why the repo has not been updated to V10?
Latest CubeMX packages have FreeRTOS V9.0.0. Try to update device packages as the FeeRTOS is distributed inside them.
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved
The examples aren't auto-generated, changing Middlewares has significant collateral impact over many projects. If you can build your own V10 template and merge in the generated portions of the code you need it is likely to have far less regression issues.
FatFs R0.12c also isn't current.
Retrieving data ...