This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Repository navigation
What is the purpose of pin PB4 in diagram v2_1c? #2168
Answered
by
dragonmux
Ludovic37-center
asked this question in
Q&A
|
Hi, In the .c and .h files of the native version, what is the purpose of pin PB4 ? |
Answered by
dragonmux
Dec 9, 2025
Replies: 3 comments 1 reply
|
It's nTRST for the JTAG interface - it has to be held high for the processor's own debug interface to work, thus the design left the pin unused but pulled high. |
1 reply
Answer selected by
Ludovic37-center
|
Is it possible to disable JTAG in order to recover pin PB4 ? Maybe in platform.c, line 328: gpio_primary_remap(AFIO_MAPR_SWJ_CFG_FULL_SWJ, AFIO_MAPR_TIM1_REMAP_PARTIAL_REMAP); ? |
0 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It's nTRST for the JTAG interface - it has to be held high for the processor's own debug interface to work, thus the design left the pin unused but pulled high.