cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find all the examples for the STM32F4Discovery?

sandtime
Associate II
Posted on April 30, 2014 at 15:25

I just purchased an STM32F4Discovery and I'm getting very frustrated before I've even begun working with it.

All the website product pages and documentation say that there are many application firmware examples located at www.st.com/stm32f4-discovery.  However, that web page is dead, and just brings up a product catalog.

I keep looking and see other pages that say that the STM32CubeMX now has all the examples.  Everywhere I look, ST's documentation says the Cube has hundreds of examples.  But not a single place tells you how to find them!

There is no obvious menu item, it's not listed in the Help pdf, it's not on the product page.  ST dropped the ball royally on this.  How can they expect new users to use their product if they can't even find the advertised features to get started?

Can someone please tell me how to find all these examples?  And if there are more located somewhere else, I would truly appreciate knowing where.

#stm32f4 #discovery
5 REPLIES 5
Posted on April 30, 2014 at 15:39

The main STM32F4-DISCO page is here

http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419

Other material is under the ''Design Resources'' tab, both there, and for the STM32F407 page

http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1577/LN11/PF252140

The original firmware library is downloadable at the bottom of this page

http://www.st.com/web/en/catalog/tools/PF257904

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
chen
Associate II
Posted on April 30, 2014 at 15:40

Hi

I do not know about the Cube, I have not  used it yet.

http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419

Under ''Related Tools and Software''

http://www.st.com/web/en/catalog/tools/PF257904

Is the old standard Peripheral Library, which is now obsolete in favour of the Cube.

Definitely has example code in there.

jeffry
Associate
Posted on April 30, 2014 at 15:47

I can understand your frustrations fully. CubeMX is useful for getting your support files generated (project setup too if you have a commercial tool chain) but as you pointed out there are no examples. The STM32F4DISCOVERY examples can be found here:

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257904

You can find that by looking in STs support page:

http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961

CubeMX and CubeF4 will generate support files using stm32f4xx_hal_* drivers, the official PDF documentation for the latest HAL is not yet available so using these interfaces may not be the easiest. If you are using I2C I would recommend looking at this:

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF258336

Out of curiosity what development environment are you using/planning to use?

sandtime
Associate II
Posted on April 30, 2014 at 18:57

Thank you all for your help.  I think I figured out a big part of the problem.  All the sources, if they're not giving the dead link, point to the STM32 Cube.  And it's tough to figure out the difference between the CubeMx vs the CubeF4.

Once I figured out that the examples are in the CubeF4, that led to my next bit of frustration - because I downloaded the F4 package *through* the CubeMx library installer.  So I thought I had it.  What I didn't realize was that when you download the CubeF4 through the CubeMx, you don't seem to get the whole thing.  The libraries came through just fine - but all the examples, demonstrations, and applications are left out.

So even though I had already grabbed it through the CubeMx, I apparently had to download the CubeF4 all over again as a seperate file.  Once I did that, I finally had access to the examples.

This was not well done on ST's part.

Regardless, thank you all for your help.  I truly appreciate it.

neo911
Associate II
Posted on May 01, 2014 at 09:54

As far as I can see, the CubeMx library installer, after downloading it, puts for instance the STM32F4 package in your ''repository'' (see User Manual, 3.5.1, ''Updater Configuration''). One can get the default settings by selecting the ''Updater settings'' choice in the ''Help''menu.

0690X00000605WqQAI.png

 

As a result, I can see in that folder the contents of STM32F4, no need to get it separately.

0690X00000605ejQAA.png

Rgds.