Hello @HAhme.1 ,
The STM32L4S5ZITx device embed an AES and a HASH hardware accelerator (compared to STM32L4RSZI). So, make sure to use the same features compatible.
Also, you need to check the pins to use, as you can see in the below screenshots, there is a difference in the pinout and the hardware need change.

You can use the "List Pinout Compatible MCUs" feature in STM32CubeMX, this will help to identify the difference.
I also advise you to have a look at the products Datasheets for more details and comparaison between the devices.
You can use the ST-MCU-FINDER tool (integrated also in STM32CubeMX) to compare the characteristics of two or more MCUs through the "Cross Selector" tab (see attached Excel file).
Hope my answer helped you! :smiling_face_with_smiling_eyes:
When your question is answered, please close this topic by choosing Select as Best.
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