Hi Jacopo,
I don't have this old RTD version installed, so I can't modify and recompile the project.
Anyway, the clock configuration is not correct.
Please set all the clock as per the RM, Table 148. Option B - Reduced Speed mode (CORE_CLK @ 120 MHz).
This is just an example from Clocking use case examples (RM, Section 24.7.2).
However, any clock frequency selected must adhere to the same clock divider ratios shown in Clocking use case examples.
Otherwise, we can't guarantee the specified functionality of the MCU.
Regards,
Daniel