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
blastofftopluto
Associate II
Posted on August 23, 2013 at 19:18

Dear clive1.....

Thank you for your help......

I think that following warning is useless and we must move forward leaving them as they are:

Info : This adapter doesn't support configurable speed

 

I am now ignoring those error and working on coding .....

If at any point you come up with the solution than please share....

Posted on August 23, 2013 at 21:12

Linux is a whole mess I'm not going to wade into. For painless dev look at Keil, Rowley or IAR.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
bee
Associate II
Posted on August 26, 2013 at 06:40

Here you are:

http://www.youtube.com/watch?v=RXOOxby5nns

Bill Lewis
Associate III
Posted on August 26, 2013 at 20:13

First off, if you don't know or aren't comfortable with unix stuff you probably don't want to be trying this.

This isn't a script of how to do it, but a history capture of some of what I typed in along the way. I could try it all over again in a fresh Ubuntu VM when I have a chance. What I have not shown is where some of the files came from and how they got on the system. They were either downloaded with Firefox or copied over a Windows share. I hope the formatting here works OK, I'm not very good with this forum editor. I also don't remember what I changed when I edited

99-stlink.rules

. I'll have to try to figure that out.

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

tar xvfz eclipse-cpp-juno-SR1-linux-gtk.tar.gz


 sudo apt-get install git zlib1g-dev libtool flex bison libgmp3-dev libmpfr-dev libncurses5-dev libmpc-dev autoconf texinfo build-essential libftdi-dev libusb-1.0.0-dev


 tar xvfz openocd-0.6.1.tar.gz
 cd openocd-0.6.1/
 ./configure --enable-maintainer-mode --enable-stlink
 make
 sudo make install
 sudo gedit /etc/udev/rules.d/99-stlink.rules
 sudo udevadm control --reload-rules
 openocd -f /usr/local/share/openocd/scripts/board/stm32f3discovery.cfg 
 chmod a+x arm-203-56-arm-none-eabi.bin
 sudo dpkg-reconfigure -plow dash
 ./arm-203-56-arm-none-eabi.bin 
 sudo dpkg-reconfigure -plow dash

-Bill
blastofftopluto
Associate II
Posted on September 01, 2013 at 19:10

Thankyou Lewis ..........

I have started fresh install of all the packages again....

Hope this time it works..