Solved
can we use debug pins as normal gpio
hello
i want to use debug pins as normal gpio pins , is it possible or not?
and if possible then how?
hello
i want to use debug pins as normal gpio pins , is it possible or not?
and if possible then how?
The short answer is yes you can.
As to how, at the lowest level (see the Reference Manual), those pins are internally routed to debug (rather than GPIO) by the MODE being set to alternate function i.e. the appropriate bits in GPIOx->MODER are 0b10; you'd want those bits to be 00 for digital input, 01 for output (or 11 for analog).
But there are complications.
Hope this helps; expand on point 1 and we might be able to help further.
Danish
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.