I can’t seem to get pin PB4 to go low, am I doing something wrong?
pinMode(PB4, OUTPUT); //fv1 pin13
digitalWrite(PB4, LOW); //high ext, low int
I can’t seem to get pin PB4 to go low, am I doing something wrong?
pinMode(PB4, OUTPUT); //fv1 pin13
digitalWrite(PB4, LOW); //high ext, low int
Yes. There is a problem with your code or wiring.
Well the code above works on other pins, and I’m definitely connected to pin PB4, but it’s always high on a multimeter
And someone else seems to have the same problem here:
https://community.st.com/s/question/0D50X00009XkXWxSAN/stm32f103-how-to-use-pb4-as-normal-gpio-njtrst-remap-not-working?t=1571388992577
Seems like in the other thread this problem was resolved by calling the clock enable. That doesn't work for you?
disableDebugPorts();
fixed it, thanks for the expert help!