Thanks very much for all the suggestions received.
I did solve the problem by checking the pin state before launch SERIN2: it is working now.
All the best to all of you,
regards