2020-12-03 09:00 AM
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
Solved! Go to Solution.
2020-12-03 09:33 AM
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.
2020-12-03 09:33 AM
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.
2020-12-04 12:27 AM
Sorry, in the description I reported PA14 but my problem is with PA13. In any case, your explanation is clear.
Thanks,
Elena
2020-12-04 01:29 AM
.
2020-12-04 02:02 AM
SOLVED