cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3 connections with external ST-LINK Debugger

blastofftopluto
Associate II
Posted on August 21, 2013 at 12:07

Dear forum members please help me....

I want to programme my STM32F3 Discovery board using external St-link v2 programmer ,which pin of programmer should i connect with stm32f3 board.

Thank you in advance.

I know that stm32f3 has built in programmer ,but i don't want to use them for some reason...

#stm32 #stm32 #linux #linux #debugger #debugging #debugging #debug-stm32-using-st-link/v2 #stm32-discovery
14 REPLIES 14
Posted on August 21, 2013 at 13:40

...awesome

Then your going to need to inject SWCLK and SWDIO via the F3 side of CN4, break the SB links related to NRST (SB11) and perhaps PB3(SWO), you'll need a common ground, and an external supply as this normally comes from the USB/ST-LINK connection
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
blastofftopluto
Associate II
Posted on August 21, 2013 at 21:25

hi clive1

Is this what you mean:

https://www.youtube.com/watch?v=_ggJXbe885U

As this is what i want to implement in stm32f3.

Thank you for your quick response
Posted on August 21, 2013 at 22:35

I stated what I meant, the video has no commentary or diagram, so who knows?

You're compelled to do this why? Review the schematic/user manual for the STM32F3-Discovery for connectivity details on the various pins and connectors.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on August 22, 2013 at 02:32

/public/STe2ecommunities/mcu/Lists/STM32Discovery/Attachments/7250/f3disco_swd.png

<img='https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Attachments/7250/f3disco_swd.png' />

Damn this Microsoft SharePoint forum royally *****...

________________

Attachments :

f3disco_swd.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzpt&d=%2Fa%2F0X0000000bQB%2F_XEOWxa1XMVl3.nxVcu7vFEwSaXC43FUkbZ6P8as1eY&asPdf=false
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
blastofftopluto
Associate II
Posted on August 22, 2013 at 07:23

Dear clive1

You are a great person I must say ...

I understood that diagram you posted .....

Now performing same .......

I wanted to do this with external st-link programmer because ,when I was programming using gnu-arm tools in linux ; openocd was giving following error:cannot set speed ,this adapter does not support variable speed.    

 

Bill Lewis
Associate III
Posted on August 22, 2013 at 18:21

I've run into that error msg myself.  Problem was USB drivers.  Took hours of cursing to get it working.

For example on Windows, STM32VL-Discovery has a St-Link v1 and needs WINUSB drivers.  I fixed those with ZADIG.   For Linux no idea.  My STM32F3-Discovery worked fine with OpenOCD on Ubuntu.

blastofftopluto
Associate II
Posted on August 22, 2013 at 23:13

Hi lewis.....

How did you install openocd in Ubuntu????

Maybe i must have not installed it properly....

Please specify installation instructions and terminal command you used in openocd.
blastofftopluto
Associate II
Posted on August 23, 2013 at 18:49

Hi clive1.............

It seams i am complete noob in this matter.

It would me easier for me to understand if you can explain me stm32discovery board connections with external st-link programmer.

I tried those connection diagram ,but all was in vain.

Posted on August 23, 2013 at 19:02

I'm rather busy with my own problems to be writing a tutorial for this.

I have identified the pins on the STM32F3-Discovery board that are critical, you need to connect those to the corresponding pins on the ST-LINK. You need to remove the CN4 jumpers to break the connectivity there. You'd want to look at some of the other solder bridges too, mainly for NRST. Get the User Manual and review the schematics.

You can check the functionality/connectivity in Windows using the ST-LINK utilities.

I'm honestly not sure how connecting an external ST-LINK will function materially differently from the on-board one with current firmware?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..