June2014DocID025776Rev41/140UM1718UsermanualSTM32CubeMXforSTM32configurationandinitializationCcodegenerationIntroductionSTM32CubeMXisagraphicaltoolfor32-bitARM®Cortex®STM32microcontrollers.ItispartofSTMCube™initiative(seeSection1)andisavailableeitherasastandaloneapplicationorasanEclipseplug-inforintegrationinIntegratedDevelopmentEnvironments(IDEs).STM32CubeMXhasthefollowingkeyfeatures:•EasymicrocontrollerselectioncoveringwholeSTM32portfolio.•BoardselectionfromalistofSTMicroelectronicsboards.•Easymicrocontrollerconfiguration(pins,clocktree,peripherals,middleware)andgenerationofthecorrespondinginitializationCcode.•Generationofconfigurationreports.•GenerationofIDEreadyprojectsforaselectionofintegrateddevelopmentenvironmenttoolchains.STM32CubeMXprojectsincludethegeneratedinitializationCcode,STM32HALdrivers,themiddlewarestacksrequiredfortheuserconfiguration,andalltherelevantfilesneededtoopenandbuildtheprojectintheselectedIDE.•Powerconsumptioncalculationforauser-definedapplicationsequence.•Self-updatesallowingtheusertokeeptheSTM32CubeMXup-to-date.•DownloadingandupdatingSTM32Cube™firmwarepackagesallowingthedownloadfrom(seeAppendixE:STM32CubeembeddedsoftwarepackagesfordetailsontheSTM32Cubepackage).AlthoughSTM32CubeMXoffersauserinterfaceandgeneratesaCcodecompliantwithSTM32MCUdesignandfirmwaresolutions,itisrecommendedtorefertotheproducttechnicaldocumentationfordetailsonactualimplementationofmicrocontrollerperipheralsandfirmware.ReferencedocumentsThefollowingdocumentsareavailablefromhttp//:•STM32microcontrollerreferencemanuals•STM32microcontrollerdatasheets•STM32CubeHALdriverusermanualsforSTM32F4xx(UM1725),STM32F2xx(UM1742),STM32L0xx(UM1749),STM32F0xx(UM1785)andSTM32F3xx(UM1786)..(forSTM32F0,STM32F2,STM32F3,STM32F4andSTM32L0seriesonly).................554.11.2GPIOConfigurationwindow.................................574.11.3DMAConfigurationwindow.....................