cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4-Discovery Updated Libraries w/Makefiles.

st239955
Associate II
Posted on January 06, 2014 at 02:24

Problem: The STM32F4-Discovery samples haven't been updated in a long time and there aren't any free IDE or toolchains supported. As a brand new developer for STM coming from Arduino land this was rather difficult even though I like the STM32F4-Discovery board better.

I started off with STM32F4-Discovery_FW_V1.1.0

I updated all libraries to the latest version 

CMSIS 3.20 (18 March 2013)

STM32F4xx Standard Peripherals Drivers

 1.3.0 (08-November-2013)

I then added FreeRTOS 7.6.0 and 

http://interactive.freertos.org/entries/22640402-FreeRTOS-v7-3-0-CrossWorks-v2-3-STM32F4-discovery

 (Which was setup to use CrossWorks IDE. )

Then I went to work searching the internet and learning about Makefiles. 

http://www.emb4fun.com/

 was where I probably got most of the help.

Everything I've been working on is a

https://github.com/jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles/tree/4f8506ac36d831d28e8cf6812d0293138eb855c0

. All of the FreeRTOS Examples build as does the STM32F4-Demonstration file and all 19 of the Peripheral Examples. I haven't tested all of the functionality but all of the folders build. Makefiles are also all recursive so if you run 'make' in Projects, FreeRTOS_Examples, or Peripheral_Examples it will compile all of the projects in subfolders. 

You will need make and

https://launchpad.net/gcc-arm-embedded

. It has only been tested on Windows with yagarto-tools-20121018 and GNU Tools Arm Embedded 4.7 2013q3.

-Werror was also used in testing so I corrected a lot of lazy coding mistakes from FreeRTOS and ST. (Mainly just casting and unused variables). If you have ST-Link installed in the default location you should also be able to use 'make flash' and flash straight from the command line. (I am using Console2, but Cmd.com should also work).

I don't frequent these forums often so submitting issues on GitHub would be the best way to reach me.

ToDo:

null
1 REPLY 1
Posted on January 06, 2014 at 02:44

Had the newlib stuff redirecting STDIO to SWV on the STM32F429I-DISCO (

https://docs.google.com/file/d/0B7OY5pub_GfIc2JZMks1UzdsOTA/edit?usp=sharing

) here based on the nanoage stuff. Redirecting to multiple USART should be quite easy.

https://community.st.com/0D50X00009XkgXjSAJ

Edit: Fixed DEAD LINK, original post from 5-Jan-2014

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..