Skip to main content
EBolz.1
Associate
December 3, 2020
Solved

DEBUGGER NOT WORKING WHEN GPIO A13 IS SET AS INPUT PIN (#7) WITH EXTERNAL INTERRUPT, MCU STM32G031J6

  • December 3, 2020
  • 4 replies
  • 1198 views

Hi, when I try to use pin #7 of STM32G031J6 as GPIO A14 configured as input with external interrupt, the debugger crashes and lose control of the application. This is not happening if I change pin, eg. use GPIO B0 on pin #5 the same way.

Has anybody encountered a similar problem? Thanks, Elena

This topic has been closed for replies.
Best answer by TDK

PA14 is used by the SWD protocol which is used by the debugger. Using it for another purpose is okay, but it means your debugger won't work and you won't be able to connect over SWD.

It's best to leave PA14 and PA13 alone whenever possible for this reason.

4 replies

TDK
TDKBest answer
December 3, 2020

PA14 is used by the SWD protocol which is used by the debugger. Using it for another purpose is okay, but it means your debugger won't work and you won't be able to connect over SWD.

It's best to leave PA14 and PA13 alone whenever possible for this reason.

"If you feel a post has answered your question, please click ""Accept as Solution""."
EBolz.1
EBolz.1Author
Associate
December 4, 2020

Sorry, in the description I reported PA14 but my problem is with PA13. In any case, your explanation is clear.

Thanks,

Elena

Tesla DeLorean
Guru
December 4, 2020

.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
EBolz.1
EBolz.1Author
Associate
December 4, 2020

SOLVED