I recommend you to use the latest version of STM32Cube firmware package and STM32CubeMX, which contains enhancement and fixes defects.
If needed, you can download the previous Cube firmware versions from STM32CubeMX tool: Help > Manage embedded software packages
Note that ST maintains its support only for the last version available on the ST web.
Regards,
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks