As mentioned by @Community member, you can find AN4899 in section 7 in that unused pins should be configured as analog input as it reduces power consumption. Also, in section 6, it is recommended to avoid floating unused pins. You should either connect them to ground or to VDD.
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
First, GPIOx_ASCR register is specific to some series. For example, you can find it in L4 Reference Manual section 8.5.12. This register is used to configure the analog connection of the IOs to the ADC input.
Second, AN4899 note is applicable to all ST MCUs.
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
In fact, this concerns more the use of analog devices than the configuration of GPIO, and this may be why the application note does not talk about it much.
Indeed @Community member. Thanks for the clarification.
Please @Björn Erik Hellerstedt if your question is answered, please close this topic by choosing Select as Best.
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL