Yes i was asking for the same .....

All the tools i mentioned were open-source as i hate closed source software.
Currently I am using the tool-chain in same method i posted in e-mail.

And I am sending you the step-by step method on how to integrate all the
stuff together:
Note: I am using debian based distro so this is the only method I know.
AND I GIVE FULL CREDIT OF THIS METHOD TO "Andrei Istodorescu: Here is his
link:
http://engineering-diy.blogspot.in/2012/11/stm32f3-discovery-eclipse-openocd.html

1-->ECLIPSE SETUP

1.1-->Download ECLIPSE CDT Juno SR2 from here (as older version are have
bug in GDB )
link:
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-cpp-juno-SR2-linux-gtk.tar.gz

1.2-->extract it to some folder let it be A.

1.3-->open eclipse

1.4-->go to help->install new software->add
http://download.eclipse.org/tools/cdt/releases/juno as repositories and
search for GDB and install it.



2-->OPENOCD SETUP

2.1-->in order to use openocd we need full-fill following dependencies :*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

*
*2.2-->download OPENOCD from following:
*
*link:
http://sourceforge.net/projects/openocd/files/openocd/0.7.0/openocd-0.7.0.zip/download

*
*2.3-->extract it to some folder let it be B.

*
*2.4-->with terminal navigate to folder B.

*
*2.5-->type following command in sequence:
        2.5.1-->**./configure --enable-maintainer-mode --enable-stlink*
*        2.5.2-->make
*
*        2.5.3-->make install

*
*2.6-->now you must check is OPENOCD is working by connecting your STM32
board with PC(type this command using root privilege)
        **2.6.1-->openocd -f
/usr/local/share/openocd/scripts/board/stm32f3discovery.cfg* *
*
*        2.6.2-->if it is working than than the command will output message
about its version ,programmer type,adepter speed etc if it is not **than we
will get error
*
*
*
*
*
*3-->GCC-ARM-EMBEDED SETUP

*
*3.1-->dowlnoad gcc--arm-embeded from following:
link:
https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q1-update/+download/gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2
*
*
*
*3.2-->extract it to folder let it be C.
**
3.3-->Now download sample project by *Andrei Istodorescu
*link:
http://code.google.com/p/andrei-development/downloads/detail?name=stm32f3.tar.gz&can=2&q=

*
*3.4-->Open eclipse(root permission) and navigate to File->import
project->genral->existing projects into workspace ,select the downloaded
project and select finish.


*
*4-->MAKEFILE SETUP

*
*4.1-->edit makefile at two placeslike this *:

TC = /C/gcc-arm-none-eabi-x_x-xxxxqx/bin/arm-none-eabi
FPU = -mfpu=fpv4-sp-d16 -mfloat-abi=hard
*

*
*
5-->WAY TO BUILD->FLASH->DEBUG CODE
*
*
5.1-->right click on project name and than select build

5.2-->*if build successful than navgate:Run->External Tools->External Tools
Configuration->openocd restart->run.
now right click on project and navigate to: debug as->debug
configuration->stm32f3-debug->
debug
*
*
*Thats all......

*
*I hope things are now more clear to you......

*
*Regards
*
_______________________________________________
electronic-lab mailing list
electronic-lab@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/electronic-lab

Reply via email to