STM32F3 Discovery + Eclipse + OpenOCD

Hi,

ST launched in September a very interesting development board(STM32F3-Discovery). It is a very cheap one(I have got myself one for ~10$). It has a debugger integrated(STLINK) and also some great sensors:
- ST MEMS LSM303DLHC, which contains 3 axis accelerometer(to measure acceleration intensity on each axis) and 3 axis magnetometer(to measure angles to a fixed point - the Earth's magnetic North)
- ST MEMS L3GD20, which has 3 axis gyrometer(to measure rotation speed)
This board is very good for automated pilot controller projects.

After unpacking the board I have found that it was supported just by commercial software and tools. As I am an opensource kind of guy I have struggled myself some time to get this working with Eclipse, OpenOCD and a free toolchain, on Linux.
I have used Ubuntu, but I think the process is the same on every distribution. Also, with little adjustments it can work on Windows.

Here are some steps, that you have to follow to get the led blinking example to work:
1. Install Java Runtime Environment. Here are some steps for Ubuntu:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

2. Install Eclipse. Get Eclipse IDE from here (grab the Eclipse IDE for C/C++ Developers) and unpack it somewhere

3. Install GDB Hardware Debugging. Open Eclipse go to Help->Install New Software and then search for GDB Hardware Debugging and install it.

   Install GNU ARM Eclipse plugin. Get it from here and install it from Help->Install New Software->Add->Archive and select the downloaded .zip file.

4. Install some dependencies. Paste following text in Terminal:
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

5. Install OpenOCD(version>0.6.1). Get it from here and unpack it. Then, navigate to the extracted folder and type in Terminal:
./configure --enable-maintainer-mode --enable-stlink 
make 
sudo make install

6. Add rule for Stlink to be accessed without sudo. Type in Terminal:
sudo gedit /etc/udev/rules.d/99-stlink.rules
Paste the following text:
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="0666"
Type in Terminal:
sudo udevadm control --reload-rules
Now, with the board connected to PC you can enter  in Terminal:
openocd -f /usr/local/share/openocd/scripts/board/stm32f3discovery.cfg
The following text should appear:
Open On-Chip Debugger 0.6.1 (2012-10-29-22:02)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.sourceforge.net/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_nogate srst_open_drain
Info : clock speed 1000 kHz
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
You can close the Terminal now.

7. Install toolchain.  You can use Codesourcery toolchain, like described in this step, or you can use GCC Arm Embedded toolchain(from here) which has support for hardware floating point unit and which is free and it is easier to install.
For Codesourcery follow the next steps:
Go to Codesourcery and download IA32 GNU/Linux Installer. To install it open the Terminal and navigate to the folder where it is downloaded. Type:
chmod a+x arm-2012.03-56-arm-none-eabi.bin 
./arm-2012.03-56-arm-none-eabi.bin
Then select next at every step. 

8. Download sample project. Go to this page and download stm32f3.tar.gz file and unpack it.

9. Open the project in Eclipse. Open Eclipse and go to Workbench. Click File->Import and then select General->Existing Projects into Workspace. Select the downloaded project and click finish.
This is a makefile project, so you have to edit makefile if you want to change some project settings. The frst thing you should do is open the Makefile file and check at the very beginning if the toolchain path is correct. This should be like:
TC = <path_to_toolchain>/arm-none-eabi
Now you can build. right click on project name and select build. The correct output is in the Console tab from Eclipse(ignore the warnings and errors from Problems tab).

10. Debugging. After the project was builded correctly select Run->External Tools->External Tools Configuration. Select OpenOCD(restart) in the left tab and click run.
Now, right click project and select Debug as->Debug Configuration and then
select in the left stm32f3-debug and then click Debug.
Note: If you want to add more source files you can add them in the src folder. New headers should be added into hdr folder. If you want to add another folder you have to specify it like the LIB_SRCS in the Makefile and also create LIB_OBJS like variable in the Makefile.

Happy free coding and debugging! :-)

Subwoofer JL Audio 12W1V2

Subwoofer Audio Mobil Subwoofer JL Audio 12W1v2 subwoofer driver are
poised to establish a new standard for affordable bass excellence
thanks to technologies originally developed for our flagship W7 and
W6v2 subwoofers. These include JL Audio's patented VRC™, Elevated
Frame-Cooling and Floating Cone Attach Method™ technologies, along with
an innovative, insert-molded spider

Head Unit Kenwood DDX-7031BT

Head Unit Doubel Din Kenwood DDX-7031BT Head Unit Kenwood DDX7031 BT
deliver revolutionary car audio technology and progressive design that
deliver car entertainment experience beyond believe. Driven by "SMART"
Concept with five key points, ease of installation, connectivity to an
extensive range of entertainment devices, design that begins from
Graphic User Interface to sound

Head Unit Clarion CZ702A

Clarion CZ702A Jika ingin mendapatkan kualitas suara yang berkualitas
tinggi dalam audio mobil, atau ingin mengikuti berbagai kompetisi
audio, upgrade yang biasa dilakukan adalah dengan menambakah sound
processor sehingga setiap speaker dapat didrive secara aktif oleh power
amplifier. Kemampuan untuk melakukan tuning secara mendetail pada
processor terutama pada crossover, time alignment, dan

Tips Membeli Audio Mobil

Audio Mobil Memiliki mobil yang nyaman serta menyenangkan untuk
dikendarai merupakan hal yang diharapkan oleh para pemilik mobil.
Terdapat bagai jenis aksesories mobil yang dapat kita pilih untuk
mendapatkan kenyamanan dalam berkendara. Selain kenyamanan, hiburan di
dalam kendaraan juga penting untuk diperhatikan, salah satunya ialah
dengan meningkatkan kualitas audio mobil. Dengan feature

AUDISON VOCE AV 5.1K POWER AMPLIFIER 5 CHANNEL

Audison Voce AV 5.1K Power Amplifier Audison Voce AV 5.1k, 1650 W (RMS)
max, five-channels car audio power amplifier, with its hybrid design,
it is the specialist amplifier for front + rear + subwoofer or
multi-amplified front + subwoofer systems for your car audio. Its
high-quality AB Class output stage provides two channels with 250 W
(RMS), combined with another pair of A class

Noiseless Pirelli Tires

There is no doubt to the fact that tires are the ones which determine the life of a vehicle. Even if your vehicle is equipped with the high standard devices available, inferior quality tires would make your journey a task to be completed than a ride to be enjoyed. And noiseless tires come as the result of the efforts to make driving a real joy.

Tips to keep in mind while selecting car tires

Experience shows that the manufacturing of tires are constantly witnessing great innovations. And it is going to great heights day by day. At present, a car enthusiast is presented with a myriad of options irrespective of the specifications the owner has in mind about his dream car. If you are someone who travels frequently on quieter roads, noiseless tires are the ideal options worth considering.

The extent of noise depends on the design of treads and it varies from brand to brand. It would be ideal if you take your car to an expert salesperson to make sure that an informed decision is taken in the matter. A professional in the matter would be able to advise you on brands with less noise which does not compromise with the other essential features of a good tire.


The companies like Pirelli have come up with innovative designs which make sure that minimizing sound does not affect the other features like longevity and extreme performance irrespective of the weather conditions. Furthermore, you have to take care that you are opting for the tires which go well with the markings seen on them with regard to width, tire size etc. Another factor which deserves utmost concern is the profile of the tires. Even though tires with low profile may appear to be inexpensive, they are easy victims of being worn out and other damages. Opt for the tires which offer equal operability on dry and wet roads. It is highly recommended that you should acquire all-season tires which would be ideal if you are someone living in an area where climate remains unpredictable most of the time.

And to ensure that you are able to get what you want from the store, you should have an idea of what you expect from your car tires. Remember, the salesperson would never be in a position to understand your driving habits. Explain your driving requirements and he would be able to assist you to choose the one which is ideal for your vehicle.

If you follow these tips, you are well on your way to enjoying a safe time on the road. This combined with the decision to opt for noiseless tires would add up to the attempts to save the atmosphere from noise pollution.

If installing car audio is what you are opting for as a way of upgrading your car, opt for the brands like Pirelli which enjoys a great reputation in the market for supplying excellent quality noiseless tires ideal for car audio enthusiasts. Go ahead, opt for noiseless tires and enjoy a comfortable ride in the company of soothing music playing in the background.