Solved
Hello. I am developing with STM32G070R8T6. It seems that there is interference between PA10 and PB15: whenever PA10 goes high, PB15 (with external pull-up) is driven at 1 V. This happens even in reset, so it is not a firmware bug. No hw connection. T
..