STM8S SWIM pin unused handling
Hello everyone.
I am in trouble with the SWIM pin of STM8S.
According to the data sheet, unused pins should be set to OUTPUT.
However, I would like to keep SWIM pins in a state where they are normally unused and can be debugged only when necessary.
How can this be achieved?
Thank you for your advice.
�?Postscript】
I supplement my questions.
UM0470 has the following description.

Perhaps I think that I can switch between SWIM function and I / O function with a jumper, but I don't know the internal settings to achieve this.
In addition, when I / O is used, I want to apply unused-pin processing such as pull-up to the SWIM pin.
(In normal times, I / O is used to perform unused processing such as pull-up, and I want to be able to debug when there is an error.)
In summary, I have two questions.
・ How can I implement a specific method to switch between SWIM function and I / O as in the above example?
・ How to perform unused processing when SWIM is in I / O mode ?
Thank you.
