Skip to main content
JFreu.1
Associate
Feb 27, 2020 9:53 PM UTC
Solved

I am using an STM32F103Z MCU. I cannot get Port B Pin 4 to work as a normal GPIO output pin. I do the setup just like other GPIO pins that are working, but Port B Pin 4 just goes high and stays high, GPIO_ResetBits() does not work.

..

This topic has been closed for replies.
Chris1
Chris1Best answer
Associate II
Feb 27, 2020 10:03 PM UTC
 // Disable the JTAG portion of the Serial Wire JTAG Debug Port SWJ-DP
 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);

2 replies

Chris1
Chris1Best answer
Associate II
Feb 27, 2020 10:03 PM UTC
 // Disable the JTAG portion of the Serial Wire JTAG Debug Port SWJ-DP
 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);

JFreu.1
JFreu.1Author
Associate
Feb 28, 2020 9:51 PM UTC

Thank you, This works great. Much appreciated Chris