cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with GPIO pin state change during program flashing

LGang.1383
Associate

Hello there!

I am using STM32F103RCT6 and have trouble with GPIO pin state change during program flashing that I don't want.

Attached picture shows this phenomenon. (ch1 : PA9, ch2 : PB14)

These two pins are not related to JTAG/SWD.

0693W000006Gtd9QAC.pngPA9, PB14 are used to turn on MOSFET in my circuit, so this unintended pin state change makes my circuit short. So, I have to solve this.

Is there any document that describes which pin change its state during flashing program?​

or Any idea to protect my circuit which is connected to these two pins from this trouble during flashing (How do experienced engineers usually solve these problem?)

1 REPLY 1

Hello

Is NRST pin connected to STLink?

With "HW_reset"(means NRST pin is connected to stlink) and "connection under reset" setup on flashing utility side, will avoid such phenomena.