2014-04-30 06:25 AM
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 #discovery2014-04-30 06:39 AM
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 pagehttp://www.st.com/web/catalog/mmc/FM141/SC1169/SS1577/LN11/PF252140
The original firmware library is downloadable at the bottom of this pagehttp://www.st.com/web/en/catalog/tools/PF257904
2014-04-30 06:40 AM
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.2014-04-30 06:47 AM
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?2014-04-30 09:57 AM
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.2014-05-01 12:54 AM
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.
As a result, I can see in that folder the contents of STM32F4, no need to get it separately. Rgds.