2020-03-11 2:53 PM
I'm working on a project that uses lots of GPIO pins for inputs- it uses A12, A13, and A14 as inputs, along with several other pins.
I have looked at the reference manual, and A13 and A14 are JTAG/SWD pins.
On reset, A15 is pulled high for the JTAG interface, and disabling JTAG/SWD with HAL commands seems to disable this pin (good.) But then I probe PA13 (SWDIO/JTMS,) and it is at ~2.4 volts. I looked at schematics, and this pin isn't connected to 3.3v with any external pull-up resistors (and probing it with a multimeter in continuity mode returns no shorts to 3.3v rail.) I disabled JTAG/SWD with:
__HAL_RCC_AFIO_CLK_ENABLE();
__HAL_AFIO_REMAP_SWJ_DISABLE();
But PA13 is still pulled high. Am I doing something wrong?