Skip to main content
Senior
November 6, 2023
Solved

PB6 not working when debugging

  • November 6, 2023
  • 2 replies
  • 1510 views

I am using PB6 as a GPIO input with a pull-up for monitoring a switch to ground.  It works properly when not debugging but has some kind of signal on it when debugging that prevents proper operation.  Note: I am using the STLINK-V3SET debugger.

Is there a way that I can disable whatever is causing this?

 

This topic has been closed for replies.
Best answer by waclawek.jan

Tesla meant this.

JW

2 replies

Tesla DeLorean
Guru
November 6, 2023

Check pin configuration and involvement with UCPD and pull down. Check Data Sheet. No specific involvement with debugger unless it changes RCC or GPIO registers.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Senior
November 6, 2023

Thank you Tesla, 

I'm not sure what you mean.  I am using USB in the project; could it be related to this?  I notice that one of the PB6 pin options is the USART1_TX pin.  I see in a design from ST that that signal (from PA9) is connected to the 14-pin JTAG connector pin 14.  Is it possible that the STM32G474RB3 uses this pin while debugging? 

waclawek.jan
waclawek.janBest answer
Super User
November 6, 2023

Tesla meant this.

JW

Senior
November 6, 2023

Thanks again waclawek.jan.  I'll do some more research.