Always use Keil.STM32L4xx_DFP.2.17.1 to run the package in Keil IDE. In the new IDE untick Short enums/wchar else it'll case errors on size mismatch later 