This section is dedicated to provide example programs for the STM32F4-Discovery using the ARMmbed libraries and other user created libraries. Where possible, the examples will be updated to meet requests from students and might even include new libraries for specific sensors etc.
It is assumed that the user is fully acquainted with the STM32F4-Discovery board and its peripherals.
ARMmbed Pin Compatibility
For your convenience, the following table will indicate the pin usage on the STM32F4-Discovery and what ARMmbed libraries/objects can be used with each:
STM32F4-Discovery-and-ARMmbed-Pin-Compatibility-Chart
If you use the incorrect pins with certain objects (e.g. PwmOut), the processor will simply "hang". Keep in mind that some of the pins are used for the onboard peripherals of the STM32F4-Discovery board itself, so be carefull using these (marked in orange in the table). So familiarise yourself with this table to ensure that you start using the correct pins from the onset of your project.
Example Page Layout
Each example page will contain the following:
-
A description of the example section and the libraries that will be used for the examples.
-
Links to each example.
-
A text document opens for each example which you can use to copy code from and then paste into a program in the ARMmbed online IDE.