APM32F4x series I/O status during reset and just after reset will be configured as floating input mode, and in such case the pull-up/pulldown resistor is disabled in input mode. After reset, the JTAG pin is put in the input pull-up or pull-down mode, and the specific configuration is as follows:
PA15: JTDI in pull-up mode
PA14: JTCK in pull-down mode
PA13: JTMS in pull-up mode
PB4: JNTRST in pull-up mode
PB3: JTDO is put in floating mode