I'm trying a variety of things out with input pins and customized timers on the STM32F0. All timer functions are alternate functions on the pins and therefore you cannot use the user button (PC13 on the NUCLEO) as it doesn't have any timer in its alternate functions.
So, the question is:
Can you (in the software) "simulate" a GPIO pin input going high? This would make writing code easier as you won't have to hook up the NUCLEO test board, header wires, etc. I was thinking of manually toggling bits in GPIO's IDR register but it's read-only. And the BSRR register only affects outputs. Is there a way to achieve this?
ST should have put the User Button on a different pin with more functions…