Do have to use STM32 Cube Hal on uvision Run Time Environment for ST Products .
Building i.e. the CMSIS-RTOS Blinky project, offered for the STM32L152C, confirms, in this case, the requirement to generate the device configuration files with STM32CubeMX: