Thursday, January 5, 2012

A Pinout Spreadsheet for the STM32F4-Discovery

ARM Cortex microcontrollers have a great number of peripherals.  So many in fact that you won't be able to use many of them at the same time, except possibly on the highest pin count devices.  The ST-Micro Discovery-F4 module provides six USARTs, two USB ports, three I2C ports, three SPIs, sixteen ADC channels, ethernet and more...
BUT you have to pick and choose which are connected to the 80 available GPIO pins.


The Discovery-F4 module has up to 10 alternate functions on some pins to allow you to choose whether to use the pin as GPIO or as a peripheral pin.  Some functions are available on multiple pins.  However, pin conflicts may mean you won't be able to use all of the peripherals you want at the same time.

I have created an Excel spreadsheet to help in the pin assignment process.  The STM32-Discovery-F4 pinout spreadsheet lists the Discovery modules pin information along with the alternate functions available for each pin.  This spreadsheet helps me to plan my projects by assigning pin names and rearranging the rows to group related pins.  I have color coded the pin functions to help me see what functions are available on which pins.

The spreadsheet can be downloaded from http://busboard.us/products/PCB-STM32-F4B1/ .
Updates to this spreadsheet will be available in this directory when they are released.  Revision 1.01 is named "Kornak-(STM32-Discovery-F4)-0001 Rev 1.01 Module Pinouts & Functions.xls"


There are three tabs/pages in the Excel workbook.
  • "Module Pins" lists the pins in the order  found on the Discovery-F4 module headers
    (two 50-pin DIL headers). 
  • The "By Function" tab is intended to let designers group the pins according the functions that are being assigned for a project.
  • The "MCU Pins" tab sorts the pins by the MCU port names (port A, port B, etc.).
If you need more peripheral pins than can fit on a 100 pin STM32F407VGT6 microcontroller (LQFP100), ST-Micro also has versions available in 144 and 176 pin packages (see the STM32F4 family product selector).  A 64 pin version is also available.

A baseboard for the Discovery-F4 module that I developed is available from BusBoard Prototype Systems, part# PCB-STM32-F4B1.  An article describing this Discovery-F4 baseboard, and others for the Discovery-F3 and Discovery-VL can be seen at "Four STM32-Discovery BaseBoards".

I would appreciate any comments or suggestions you may have on the spreadsheet or this blog.  Please send them to kornak.busboard@gmail.com

Kornak Technologies provides embedded product development and manufacturing services including STM32 hardware and firmware development.