cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107RCT6 (LQFP64) - JTAG Help!

jmiller19825
Associate II
Posted on October 27, 2012 at 19:35

Hey Guys:

Please take it easy on me, I am a rookie STM32 user.

I've recently ''adopted'' a new project from my employer due to the old engineer leaving the company abruptly.   I've been tasked with flashing several STM32F107RCT6 (LQFP64) in-house deisgned boards with a new firmware file.

Unfortunately, the old engineer didn't leave the board designs behind, so I've been tasked with trying to figure this mess out.  Our board uses a custom 8-pin JTAG header, but I haven't had any luck interfacing with the STM to burn the new firmware image.  The old engineer took the custom debug cables with him, and we no longer have the documentation.

I've been trying a STLINK/v2, and each time it is unable to connect to the device.  Below is our JTAG pinout header - I think I am connecting the wrong pins to the STLINK/v2 debugger - I am hoping someone is able to clarify (in easy terms!) which of each of these pins should connect to the STLINK/v2.  The pinouts get confusing to me, being a novice.

(Our) Pin Header / Pin on STM32 / Pin Identifier / Pin Function per documents:

1 -  Pin 63/47/18/12 (vss)

2 - n/c

3 - 50 - PA15 - JTDI / SPI3 / I2S3

4 - 57 - PB5 - I2C1 / SPI3 / I2S3

5 - 46 - PA13 - TJMS-SWDIO

6 - 56 - PB4 - JNTRST - SPI3 MSIO

7 - 49 - PA14 - JTCK-SWCLK

8 - 13 / 19 /32 / 48 / 64 - VDD

Thank you so much in advance for any help you can provide.  Greatly appreciated!
5 REPLIES 5
rg256
Associate
Posted on October 28, 2012 at 12:21

Connect the followings Pins to STLINK/v2:

1 -  Pin 63/47/18/12 (vss)

5 - 46 - PA13 - TJMS-SWDIO

6 - 56 - PB4 - JNTRST

7 - 49 - PA14 - JTCK-SWCLK

8 - 13 / 19 /32 / 48 / 64 - VDD (connect this pin only if your target has no own supply)

Check settings in flash-software (eg: STM32 ST-LINK utility)

- ''Connection'': SWD

Posted on October 28, 2012 at 13:55

You sure pin 4 isn't PB3 ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jmiller19825
Associate II
Posted on October 28, 2012 at 15:49

Hey guys - thanks for the replie!  I tried the SWD method above, and just get target not connected after switching STLINK to SWD.

Clive - you're right - I double checked with a continuity test and it does come back to PB3, not PB4, which is labeled as JTDO. 

Appreciate the help thus far!

Posted on October 28, 2012 at 20:24

If you can't get JTAG/SWD working, an alternative method to get firmware in is via USART1 via the System Loader (Flash Loader Demonstrator) when the device is booted with BOOT0 pin High.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jmiller19825
Associate II
Posted on October 28, 2012 at 23:34

Thanks guys... was playing around today and got STLINKv2 to no longer report ''no target detected'', it now states ''unknown device connected''. 

To note, my board now gets power indicated by the LED.