Skip to main content
JFreu.1
Associate
February 27, 2020
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.

  • February 27, 2020
  • 2 replies
  • 957 views

..

This topic has been closed for replies.
Best answer by Chris1
 // 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
February 27, 2020
 // 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
February 28, 2020

Thank you, This works great. Much appreciated Chris