Copyright 2016 STMicroelectronics
The STM32CubeF0 Firmware package comes with a rich set of examples running on STMicroelectronics boards, organized by board and provided with preconfigured projects for the main supported toolchains.
The examples are classified depending on the STM32Cube level they apply to, and are named as follows:
The examples are located under STM32Cube_FW_STM32CubeF0_VX.Y.Z\Projects\, and all of them have the same structure:
To run the example, you have to do the following:
The provided examples can be tailored to run on any compatible hardware; user simply need to update the BSP drivers for his board, if it has the same hardware functions (LED, LCD display, pushbuttons...etc.). The BSP is based on a modular architecture that allows it to be ported easily to any hardware by just implementing the low level routines.
The table below contains the list of examples provided within STM32CubeF0 Firmware package.
Level | Module Name | Project Name | Description | STM32F042K6-Nucleo | STM32F031K6-Nucleo | STM32091C_EVAL | STM32F0308-Discovery | STM32F072RB-Nucleo | STM32F070RB-Nucleo | STM32F030R8-Nucleo | STM32072B_EVAL | STM32F072B-Discovery | STM32F091RC-Nucleo |
Templates_LL |
- |
Starter project |
This projects provides a reference template through the LL API that can be used to build any firmware application. | X | X | X | X | X | X | X | X | X | X |
Total number of templates_ll: 10 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||
Templates |
- |
Starter project |
This projects provides a reference template that can be used to build any firmware application. | X | X | X | X | X | X | X | X | X | X |
Total number of templates: 10 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||
Examples |
- |
BSP |
This example provides a description of how to use the different BSP drivers. | - | - | X | - | - | - | - | X | - | - |
ADC |
ADC_AnalogWatchdog |
This example provides a short description of how to use the ADC peripheral to perform conversions with analog watchdog and out-of-window interruptions enabled. | - | - | - | - | X | - | - | - | - | X | |
ADC_DMA_Transfer |
This example describes how to configure and use the ADC to convert an external analog input and get the result using a DMA transfer through the HAL API. | X | X | X | X | - | X | X | X | X | - | ||
ADC_LowPower |
This example provides a short description of how to use the ADC peripheral to perform conversions with ADC low power modes: auto-wait and auto-power off. | - | - | X | - | - | - | - | X | - | - | ||
ADC_RegularConversion_Polling |
This example describes how to use the ADC in Polling mode to convert data through the HAL API. | - | - | X | - | - | - | - | X | X | - | ||
ADC_Sequencer |
This example provides a short description of how to use the ADC peripheral with sequencer to convert several channels. | - | - | - | - | X | - | - | - | - | X | ||
ADC_TriggerMode |
This example describes how to use the ADC1 and TIM2 to convert continuously data from ADC channel. Each time an external trigger is generated by TIM2 a new conversion is started by ADC. | - | - | X | - | - | - | - | X | X | - | ||
CAN |
CAN_Networking |
This example shows how to configure the CAN peripheral to send and receive CAN frames in normal mode. | - | - | X | - | - | - | - | X | - | - | |
CEC |
CEC_DataExchange |
This example shows how to configure and use the CEC peripheral to receive and transmit messages. | - | - | X | - | - | - | - | X | - | - | |
CEC_ListenMode |
This example shows how to configure and use the CEC peripheral to receive and transmit messages between two boards while a third one (the spy device) listens but doesn't acknowledge the received messages. | - | - | X | - | - | - | - | X | - | - | ||
CEC_MultiAddress |
This example shows how to configure and use the CEC peripheral to receive and transmit messages in the case where one device supports two distinct logical addresses at the same time. | - | - | X | - | - | - | - | X | - | - | ||
COMP |
COMP_AnalogWatchdog |
This example shows how to make an analog watchdog using the COMP peripherals in window mode. | - | - | X | - | X | - | - | X | - | X | |
COMP_Interrupt |
This example shows how to configure the COMP peripheral to compare the external voltage applied on a specific pin with the Internal Voltage Reference. When the comparator input crosses (either rising or falling edges) the internal reference voltage VREFINT (1.22V), the comparator generates an interrupt. | - | - | X | - | X | - | - | X | X | X | ||
CRC |
CRC_Bytes_Stream_7bit_CRC |
This example guides you through the different configuration steps by means of the HAL API. The CRC (Cyclic Redundancy Check) calculation unit computes 7-bit long CRC codes derived from buffers of 8-bit data (bytes). | - | - | - | - | X | - | - | - | X | X | |
CRC_Data_Reversing_16bit_CRC |
This example guides you through the different configuration steps by means of the HAL API. The CRC (Cyclic Redundancy Check) calculation unit computes a 16-bit long CRC code derived from a buffer of 8-bit data (bytes). | - | - | - | - | X | - | - | - | X | X | ||
CRC_Example |
This example guides you through the different configuration steps by means of the HAL API. The CRC (Cyclic Redundancy Check) calculation unit computes the CRC code of a given buffer of 32-bit data words, using a fixed generator polynomial (0x4C11DB7). | X | X | X | X | X | X | X | X | X | X | ||
CRC_UserDefinedPolynomial |
This example guides you through the different configuration steps by mean of HAL API to ensure the use of the CRC (Cyclic Redundancy Check) calculation unit to get a CRC code of a given buffer of data word(32-bit), based on a user defined generator polynomial. In this example, the polynomial is set manually to 0x9B. | - | - | X | - | X | - | - | X | X | X | ||
Cortex |
CORTEXM_ProcessStack |
This example shows how to modify Cortex-M0 Thread mode stack. | - | - | - | X | X | X | X | - | X | X | |
CORTEXM_SysTick |
This example shows how to use the default configuration of SysTick with a time base equal to 1 ms in order to insert a delay between LEDs toggling. | - | - | X | X | X | X | X | X | X | X | ||
DAC |
DAC_SignalsGeneration |
This example provides a description of how to use the DAC peripheral to generate several signals using DMA controller. | - | - | X | - | X | - | - | X | X | X | |
DAC_SimpleConversion |
This example provides a short description of how to use the DAC peripheral to do a simple conversion. | - | - | X | - | X | - | - | X | X | X | ||
DMA |
DMA_FLASHToRAM |
This example provides a description of how to use a DMA to transfer a word data buffer from Flash memory to embedded SRAM through the HAL API. | - | - | X | X | X | X | X | X | X | X | |
FLASH |
FLASH_EraseProgram |
This application describes how to configure and use the FLASH HAL API to erase and program the internal Flash memory. | X | X | X | - | X | X | X | X | X | X | |
FLASH_WriteProtection |
This example describes how to configure and use the FLASH HAL API to enable and disable the write protection of the internal Flash memory. | - | - | X | - | X | X | X | X | X | X | ||
GPIO |
GPIO_EXTI |
This example shows how to configure external interrupt lines. | - | - | X | X | X | X | X | X | X | X | |
GPIO_IOToggle |
This example describes how to configure and use GPIOs through the HAL API. | X | X | X | X | X | X | X | X | X | X | ||
HAL |
HAL_TimeBase_RTC_ALARM |
This example describes how to customize the HAL time base using RTC alarm instead of Systick as main source of time base. The User push-button will be used to Suspend or Resume tick increment. | - | - | X | - | - | X | - | - | - | X | |
HAL_TimeBase_RTC_WKUP |
This example describes how to customize the HAL time base using RTC wakeup instead of Systick as main source of time base. The User push-button will be used to Suspend or Resume tick increment. | - | - | X | - | - | X | - | - | - | X | ||
HAL_TimeBase_TIM |
This example describes how to customize the HAL time base using a general purpose timer instead of Systick as main source of time base. | - | - | X | - | - | X | - | - | - | X | ||
I2C |
I2C_EEPROM |
This example describes how to perform I2C data buffer transmission/reception via DMA. The communication uses an I2C EEPROM memory. | - | - | X | - | - | - | - | X | X | - | |
I2C_TwoBoards_AdvComIT |
This example describes how to perform I2C data buffer transmission/reception between two boards, using an interrupt. | - | - | X | X | X | X | X | - | X | X | ||
I2C_TwoBoards_ComDMA |
This example describes how to perform I2C data buffer transmission/reception between two boards, via DMA. | - | - | - | X | X | X | X | X | X | X | ||
I2C_TwoBoards_ComIT |
This example describes how to perform I2C data buffer transmission/reception between two boards using an interrupt. | - | - | - | X | X | X | X | - | X | X | ||
I2C_TwoBoards_ComPolling |
This example describes how to perform I2C data buffer transmission/reception between two boards in Polling mode. | - | - | - | X | X | X | X | - | X | X | ||
I2C_TwoBoards_RestartAdvComIT |
This example describes how to perform a multiple I2C data buffer transmission/reception between two boards in Interrupt mode and with a restart condition. | - | - | - | - | X | - | - | - | - | - | ||
I2C_TwoBoards_RestartComIT |
This example describes how to perform a single I2C data buffer transmission/reception between two boards in Interrupt mode and with a restart condition. | - | - | - | - | X | - | - | - | - | - | ||
I2C_WakeUpFromStop |
This example describes how to perform I2C data buffer transmission/reception between two boards using an interrupt when the device is in STOP mode. | - | - | X | - | X | - | - | - | X | X | ||
IWDG |
IWDG_Reset |
This example describes how to ensure IWDG reload counter and simulate a software fault that generates an MCU IWDG reset when a programmed time period has elapsed. | X | X | X | X | X | X | X | X | X | X | |
IWDG_WindowMode |
This example shows how to periodically update the IWDG reload counter and simulate a reload outside the window that generates an MCU IWDG reset. | X | X | X | X | X | X | X | X | X | X | ||
PWR |
PWR_CurrentConsumption |
This example shows how to configure the system to measure the current consumption in different low power modes. | - | - | - | X | X | X | X | - | X | X | |
PWR_PVD |
This example shows how to configure the programmable voltage detector using an external interrupt line. External DC supply has to be used to power Vdd. | - | - | - | - | X | - | - | - | X | X | ||
PWR_STANDBY |
This example shows how to enters the system to STANDBY mode and wake-up from this mode using: external RESET, RTC Alarm A or WKUP pin. | - | - | X | - | - | - | - | X | - | - | ||
PWR_STOP |
This example shows how to enter Stop mode and wake up from this mode by using the RTC Wakeup timer event or an interrupt. | - | - | X | - | - | - | - | X | - | - | ||
RCC |
RCC_CRS_Synchronization_IT |
This example describes how to use the RCC HAL API to configure Clock Recovery Service in IT mode. | - | - | X | - | - | - | - | X | - | - | |
RCC_CRS_Synchronization_Polling |
This example describes how to use the RCC HAL API to configure Clock Recovery Service in using polling mode. | - | - | X | - | - | - | - | X | - | - | ||
RCC_ClockConfig |
This example describes how to use the RCC HAL API to configure the system clock (SYSCLK) and modify the clock settings in run mode. | - | - | X | X | X | X | - | X | X | X | ||
RTC |
RTC_Alarm |
This example guides you through the different configuration steps by mean of HAL API to ensure Alarm configuration and generation using the RTC peripheral. | X | X | - | X | X | X | X | - | X | X | |
RTC_Calendar |
This example guides you through the different configuration steps by mean of HAL API to ensure Calendar configuration using the RTC peripheral. | - | - | X | - | - | - | - | X | - | - | ||
RTC_Tamper |
This example guides you through the different configuration steps by means of the RTC HAL API to write/read data to/from RTC Backup registers. It also demonstrates the tamper detection feature. | X | X | X | - | X | - | - | X | X | X | ||
SMBUS |
SMBUS_TSENSOR |
This example shows how to ensure SMBUS Data buffer transmission and reception with IT. The communication is done with a SMBUS temperature sensor. | - | - | X | - | - | - | - | X | - | - | |
SPI |
SPI_FullDuplex_ComDMA |
This example shows how to perform SPI data buffer transmission/reception between two boards via DMA. | X | X | - | X | X | X | X | - | X | X | |
SPI_FullDuplex_ComIT |
This example shows how to ensure SPI data buffer transmission/reception between two boards by using an interrupt. | X | X | - | X | X | X | X | - | X | X | ||
SPI_FullDuplex_ComPolling |
This example shows how to ensure SPI Data buffer transmission and reception using Polling. The communication is done with 2 boards through SPI. | X | X | - | X | X | X | X | - | X | X | ||
TIM |
TIM_ComplementarySignals |
This example shows how to configure the TIM1 peripheral to generate three complementary TIM1 signals, to insert a defined dead time value, to use the break feature and to lock the desired parameters. | - | - | - | X | X | X | X | - | X | X | |
TIM_DMA |
This example provides a description of how to use DMA with TIMER Update request to transfer Data from memory to TIMER Capture Compare Register 3 (TIMx_CCR3). | - | - | - | X | X | X | X | - | X | X | ||
TIM_InputCapture |
This example shows how to use the TIM peripheral to measure the frequency of an external signal. | - | - | X | X | X | X | X | X | X | X | ||
TIM_PWMInput |
This example shows how to use the TIM peripheral to measure the frequency and duty cycle of an external signal. | - | - | - | X | X | X | X | - | X | X | ||
TIM_PWMOutput |
This example shows how to configure the TIM peripheral in PWM (Pulse Width Modulation) mode. | - | - | X | X | X | - | X | X | X | X | ||
TIM_TimeBase |
This example shows how to configure the TIM peripheral to generate a time base of one seconde with the corresponding Interrupt request. | - | - | - | X | X | X | X | X | X | X | ||
TSC |
TSC_BasicAcquisition_Interrupt |
This example describes how to use the TSC to perform continuous acquisitions of two channels in interrupt mode. | - | - | X | - | - | - | - | X | X | - | |
TSC_BasicAcquisition_Polling |
This example describes how to use the TSC to perform continuous acquisitions of one channel in polling mode. | - | - | X | - | - | - | - | X | X | - | ||
UART |
UART_HyperTerminal_DMA |
This example describes an UART transmission (transmit/receive) in DMA mode between a board and an HyperTerminal PC application. | X | X | X | - | - | - | - | X | - | - | |
UART_OneBoards_8UART |
This example guides you through the different configuration steps by mean of HAL API to ensure Data buffer transmission and reception At the beginning of the main program the HAL_Init() function is called to reset all the peripherals, initialize the Flash interface and the systick. | - | - | X | - | - | - | - | - | - | - | ||
UART_TwoBoards_ComDMA |
This example describes an UART transmission (transmit/receive) in DMA mode between two boards. | X | X | - | X | X | X | X | - | X | X | ||
UART_TwoBoards_ComIT |
This example describes an UART transmission (transmit/receive) in interrupt mode between two boards. | X | X | - | X | X | X | X | - | X | X | ||
UART_TwoBoards_ComPolling |
This example describes an UART transmission (transmit/receive) in polling mode between two boards. | X | X | - | X | X | X | X | - | X | X | ||
UART_WakeUpFromStop |
This example shows how to configure an UART to wake up the MCU from STOP mode when a given stimulus is received. | X | X | X | - | X | - | - | X | X | X | ||
WWDG |
WWDG_Example |
This example guides you through the different configuration steps by means of the HAL API to perform periodic WWDG counter update and simulate a software fault that generates an MCU WWDG reset when a predefined time period has elapsed. | X | X | X | X | X | X | X | X | X | X | |
Total number of examples: 349 | 17 | 17 | 45 | 29 | 45 | 33 | 30 | 41 | 46 | 46 | |||
Examples_LL |
ADC |
ADC_AnalogWatchdog |
This example describes how to use a ADC peripheral with ADC analog watchdog to monitor a channel and detect when the corresponding conversion data is out of window thresholds; This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - |
ADC_ContinuousConversion_TriggerSW |
This example describes how to use a ADC peripheral to perform continuous ADC conversions of a channel, from a SW start; This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_ContinuousConversion_TriggerSW_Init |
This example describes how to use a ADC peripheral to perform continuous ADC conversions of a channel, from a SW start; This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_ContinuousConversion_TriggerSW_LowPower |
This example describes how to use a ADC peripheral with ADC low power features; This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_MultiChannelSingleConversion |
This example describes how to use a ADC peripheral to convert several channels, ADC conversions are performed successively in a scan sequence; This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_SingleConversion_TriggerSW |
This example describes how to use a ADC peripheral to perform a single ADC conversion of a channel, at each software start; Example using programming model: polling (for programming models interrupt or DMA transfer, refer to other examples); This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_SingleConversion_TriggerSW_DMA |
This example describes how to use a ADC peripheral to perform a single ADC conversion of a channel, at each software start; Example using programming model: DMA transfer (for programming models polling or interrupt, refer to other examples); This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_SingleConversion_TriggerSW_IT |
This example describes how to use a ADC peripheral to perform a single ADC conversion of a channel, at each software start; Example using programming model: interrupt (for programming models polling or DMA transfer, refer to other examples); This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_SingleConversion_TriggerTimer_DMA |
This example describes how to use a ADC peripheral to perform a single ADC conversion of a channel, at each trigger event from timer; Conversion data are transferred by DMA into a table, indefinitely (circular mode); This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
ADC_TemperatureSensor |
This example describes how to use a ADC peripheral to perform a single ADC conversion of the internal temperature sensor and to calculate the temperature in Celsius degrees; Example using programming model: polling (for programming models interrupt or DMA transfer, refer to other examples); This example is based on the STM32F0xx ADC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
COMP |
COMP_CompareGpioVsVrefInt_IT |
This example describes how to use a comparator peripheral to compare a voltage level applied on a GPIO pin versus the internal voltage reference (VrefInt), in interrupt mode; This example is based on the STM32F0xx COMP LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
COMP_CompareGpioVsVrefInt_IT_Init |
This example describes how to use a comparator peripheral to compare a voltage level applied on a GPIO pin versus the internal voltage reference (VrefInt), in interrupt mode; This example is based on the STM32F0xx COMP LL API; peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
COMP_CompareGpioVsVrefInt_OutputGpio |
This example describes how to use a comparator peripheral to compare a voltage level applied on a GPIO pin versus the internal voltage reference (VrefInt), comparator output is connected to a GPIO; This example is based on the STM32F0xx COMP LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
COMP_CompareGpioVsVrefInt_Window_IT |
This example describes how to use a pair of comparator peripherals to compare a voltage level applied on a GPIO pin versus 2 thresholds: the internal voltage reference (VrefInt) and a fraction the internal voltage reference (VrefInt/2), in interrupt mode; This example is based on the STM32F0xx COMP LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
CRC |
CRC_CalculateAndCheck |
This example shows how to configure CRC calculation unit to get a CRC code of a given data buffer, based on a fixed generator polynomial (default value 0x4C11DB7). Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
CRC_UserDefinedPolynomial |
This example shows how to configure and use CRC calculation unit to get a 8-bit long CRC of a given data buffer, based on a user-defined generating polynomial. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
CRS |
CRS_Synchronization_IT |
This example describes how to configure Clock Recovery Service in IT mode through the STM32F0xx CRS LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
CRS_Synchronization_Polling |
This example describes how to configure Clock Recovery Service in polling mode through the STM32F0xx CRS LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
DAC |
DAC_GenerateConstantSignal_TriggerSW |
This example describes how to use the DAC peripheral to generate a constant voltage signal; This example is based on the STM32F0xx DAC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
DAC_GenerateWaveform_TriggerHW |
This example describes how to use the DAC peripheral to generate a waveform voltage from digital data stream transfered by DMA; This example is based on the STM32F0xx DAC LL API; peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
DAC_GenerateWaveform_TriggerHW_Init |
This example describes how to use the DAC peripheral to generate a waveform voltage from digital data stream transfered by DMA; This example is based on the STM32F0xx DAC LL API; peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
DMA |
DMA_CopyFromFlashToMemory |
This example describes how to use a DMA channel to transfer a word data buffer from Flash memory to embedded SRAM. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
DMA_CopyFromFlashToMemory_Init |
This example describes how to use a DMA channel to transfer a word data buffer from Flash memory to embedded SRAM. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
EXTI |
EXTI_ToggleLedOnIT |
This example describes how to configure the EXTI and use GPIOs using the STM32F0xx LL API to toggles the available users LEDs on the board when User button is pressed. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
EXTI_ToggleLedOnIT_Init |
This example describes how to configure the EXTI and use GPIOs using the STM32F0xx LL API to toggles the available users LEDs on the board when User button is pressed. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
GPIO |
GPIO_InfiniteLedToggling |
This example describes how to configure and use GPIOs through the LL API to toggles the available users LEDs on the board each 250 ms. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
GPIO_InfiniteLedToggling_Init |
This example describes how to configure and use GPIOs through the LL API to toggles the available users LEDs on the board each 250 ms. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
I2C |
I2C_OneBoard_AdvCommunication_DMAAndIT |
This example describes how to exchange some datas between an I2C Master device using DMA mode and an I2C Slave device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
I2C_OneBoard_Communication_DMAAndIT |
This example describes how to transmit some data bytes from an I2C Master device using DMA mode to an I2C Slave device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_OneBoard_Communication_IT |
This example describes how to receive data byte from an I2C Slave device using IT mode to an I2C Master device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_OneBoard_Communication_IT_Init |
This example describes how to receive data byte from an I2C Slave device using IT mode to an I2C Master device using IT mode. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
I2C_OneBoard_Communication_PollingAndIT |
This example describes how to transmit data bytes from an I2C Master device using Polling mode to an I2C Slave device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_TwoBoards_MasterRx_SlaveTx_IT |
This example describes how to receive data byte from an I2C Slave device using IT mode to an I2C Master device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_TwoBoards_MasterTx_SlaveRx |
This example describes how to transmit some data bytes from an I2C Master device using Polling mode to an I2C Slave device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_TwoBoards_MasterTx_SlaveRx_DMA |
This example describes how to transmit some data bytes from an I2C Master device using DMA mode to an I2C Slave device using DMA mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
I2C_TwoBoards_WakeUpFromStop_IT |
This example describes how to receive data byte from an I2C Slave device in Stop mode using IT mode to an I2C Master device using IT mode. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
IWDG |
IWDG_RefreshUntilUserEvent |
This example describes how to configure the IWDG and insure counter update at regular period and generating an MCU IWDG reset at User Button pressed. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
PWR |
PWR_EnterStandbyMode |
This example shows how to enter the system in STANDBY mode and wake-up from this mode using external RESET or wake-up interrupt. | - | - | - | - | X | - | - | - | - | - | |
PWR_EnterStopMode |
This example shows how to enter the system in STOP_LPREGU mode. | - | - | - | - | X | - | - | - | - | - | ||
RCC |
RCC_OutputSystemClockOnMCO |
This example describes how to configure MCO pin (PA8) to output the system clock. | - | - | - | - | X | - | - | - | - | - | |
RCC_UseHSEasSystemClock |
This example describes how to use the RCC LL API how to start the HSE and use it as system clock. | - | - | - | - | X | - | - | - | - | - | ||
RCC_UseHSI_PLLasSystemClock |
This example shows how to modify the PLL parameters in run time. | - | - | - | - | X | - | - | - | - | - | ||
RTC |
RTC_Alarm |
This example guides you through the different configuration steps by mean of LL API to ensure Alarm configuration and generation using the RTC peripheral. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
RTC_Alarm_Init |
This example guides you through the different configuration steps by mean of LL API to ensure Alarm configuration and generation using the RTC peripheral. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
RTC_Calendar |
This example guides you through the different configuration steps by mean of HAL API to configure the RTC calendar. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
RTC_ExitStandbyWithWakeUpTimer |
This example shows how to configure the RTC in order to wake up from Standby mode using RTC Wakeup Timer. Peripheral initialization is done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
RTC_Tamper |
This example guides you through the different configuration steps by mean of LL API to ensure Tamper configuration using the RTC peripheral. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
RTC_TimeStamp |
This example guides you through the different configuration steps by mean of LL API to ensure Time Stamp configuration using the RTC peripheral. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
SPI |
SPI_OneBoard_HalfDuplex_DMA |
This example shows how to configure GPIO and SPI peripherals for transmitting bytes from an SPI Master device to an SPI Slave device by using DMA mode through the STM32F0xx SPI LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
SPI_OneBoard_HalfDuplex_DMA_Init |
This example shows how to configure GPIO and SPI peripherals for transmitting bytes from an SPI Master device to an SPI Slave device by using DMA mode through the STM32F0xx SPI LL API. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
SPI_OneBoard_HalfDuplex_IT |
This example shows how to configure GPIO and SPI peripherals for transmitting bytes from an SPI Master device to an SPI Slave device by using IT mode through the STM32F0xx SPI LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
SPI_TwoBoards_FullDuplex_DMA |
This example shows how to ensure SPI data buffer transmission and reception in DMA mode. The example is based on the STM32F0xx SPI LL API. Peripheral initialization is done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
SPI_TwoBoards_FullDuplex_IT |
This example shows how to ensure SPI data buffer transmission and reception in Interrupt mode. The example is based on the STM32F0xx SPI LL API. Peripheral initialization is done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM |
TIM_BreakAndDeadtime |
This example shows how to configure the TIMER to perform the following: – generate three center-aligned PWM and complementary PWM signals – insert a defined dead time value – use the break feature – lock the desired parameters This example is based on the STM32F0xx TIM LL API; peripheral initialization is done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
TIM_DMA |
This example provides a description of how to use DMA with TIMER update request to transfer Data from memory to TIMER Capture Compare Register 3 (TIMx_CCR3); Example using the STM32F0xx TIM LL API, peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM_InputCapture |
This example shows how to use the TIM peripheral to measure the frequency of a periodic signal provided either by an external signal generator or by another timer instance; Example using the STM32F0xx TIM LL API, peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM_OnePulse |
This example shows how to configure a timer to generate a positive pulse in Output Compare mode with a length of tPULSE and after a delay of tDELAY; This example is based on the STM32F0xx TIM LL API; peripheral initialization is done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM_OutputCompare |
This example shows how to configure the TIM peripheral to generate an output waveform in different output compare modes; Example using the STM32F0xx TIM LL API, peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM_PWMOutput |
This example describes how to use a timer peripheral to generate a PWM output signal and update PWM duty cycle; Example using the STM32F0xx TIM LL API, peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
TIM_PWMOutput_Init |
This example describes how to use a timer peripheral to generate a PWM output signal and update PWM duty cycle; Example using the STM32F0xx TIM LL API, peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
TIM_TimeBase |
This example shows how to configure the TIM peripheral to generate a time base; Example using the STM32F0xx TIM LL API, peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART |
USART_Communication_Rx_IT |
This example shows how to configure GPIO and USART peripheral for receiving characters from HyperTerminal (PC) in Asynchronous mode using IT. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
USART_Communication_Rx_IT_Continuous |
This example shows how to configure GPIO and USART peripheral for continuously receiving characters from HyperTerminal (PC) in Asynchronous mode using IT. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_Communication_Rx_IT_Init |
This example shows how to configure GPIO and USART peripheral for receiving characters from HyperTerminal (PC) in Asynchronous mode using IT. Peripheral initialization done using LL initialization function to demonstrate LL init usage. | - | - | - | - | X | - | - | - | - | - | ||
USART_Communication_Tx |
This example shows how to configure GPIO and USART peripherals to send characters asynchronously to an HyperTerminal (PC) in Polling mode. If the transfer could not be completed within the allocated time, a timeout allows to exit from the sequence with a Timeout error code; This example is based on STM32F0xx USART LL API; Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_Communication_TxRx_DMA |
This example shows how to configure GPIO and USART peripheral to send characters asynchronously to/from an HyperTerminal (PC) in DMA mode; This example is based on STM32F0xx USART LL API; Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_Communication_Tx_IT |
This example shows how to configure GPIO and USART peripheral to send characters asynchronously to HyperTerminal (PC) in Interrupt mode; This example is based on STM32F0xx USART LL API; Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_HardwareFlowControl |
This example shows how to configure GPIO and USART peripheral to receive characters asynchronously from HyperTerminal (PC) in Interrupt mode with Hardware Flow Control feature enabled; This example is based on STM32F0xx USART LL API; Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_SyncCommunication_FullDuplex_DMA |
This example shows how to configure GPIO, USART, DMA and SPI peripherals for transmitting bytes from/to an USART peripheral to/from an SPI peripheral (in slave mode) by using DMA mode through the STM32F0xx USART LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_SyncCommunication_FullDuplex_IT |
This example shows how to configure GPIO, USART, DMA and SPI peripherals for transmitting bytes from/to an USART peripheral to/from an SPI peripheral (in slave mode) by using IT mode through the STM32F0xx USART LL API (SPI is using DMA for receving/transmitting characters sent from/received by USART). Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
USART_WakeUpFromStop |
This example shows how to configure GPIO and USART peripherals for allowing characters received on USART RX pin, to wake Up MCU from low power mode, using STM32F0xx USART LL API. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | ||
UTILS |
UTILS_ConfigureSystemClock |
This example describes how to use UTILS LL API to configure the system clock using PLL with HSI as source clock. The user application just needs to calculate PLL parameters using STM32CubeMX and call the UTILS LL API. | - | - | - | - | X | - | - | - | - | - | |
UTILS_ReadDeviceInfo |
This example describes how to Read UID, Device ID and Revision ID and save them into a global information buffer. | - | - | - | - | X | - | - | - | - | - | ||
WWDG |
WWDG_RefreshUntilUserEvent |
This example describes how to configure WWDG and update counter at regular period and generating an MCU WWDG reset at User Button pressed. Peripheral initialization done using LL unitary services functions for optimization purpose (performance and size). | - | - | - | - | X | - | - | - | - | - | |
Total number of examples_ll: 74 | 0 | 0 | 0 | 0 | 74 | 0 | 0 | 0 | 0 | 0 | |||
Examples_MIX |
ADC |
ADC_SingleConversion_TriggerSW_IT |
This example describes how to use a ADC peripheral to perform a single ADC conversion of a channel, at each software start; Example using programming model: interrupt (for programming models polling or DMA transfer, refer to other examples); This example is based on the STM32F0xx ADC HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - |
CRC |
CRC_PolynomialUpdate |
This example provides a description of how to use CRC peripheral through the STM32F0xx CRC HAL & LL API (LL API used for performance improvement); The CRC (Cyclic Redundancy Check) calculation unit computes a 8-bit long CRC code of a given buffer of 32-bit data words, based on a user-defined generating polynomial; In this example, the polynomial is first set manually to 0x9B that is X^8 + X^7 + X^4 + X^3 + X + 1; Then, in a second step, generating polynomial value and length are updated (set to 0x1021 that is X^16 + X^12 + X^5 + 1), for new CRC calculation; These updates are performed using CRC LL API. | - | - | - | - | X | - | - | - | - | - | |
DMA |
DMA_FLASHToRAM |
This example provides a description of how to use a DMA to transfer a word data buffer from Flash memory to embedded SRAM through the STM32F0xx DMA HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - | |
I2C |
I2C_OneBoard_ComSlave7_10bits_IT |
This example describes how to perform I2C data buffer transmission/reception between master and 2 slaves with different Address size (7-bit or 10-bit) through the STM32F0xx HAL & LL API (LL API used for performance improvement), using an interrupt. | - | - | - | - | X | - | - | - | - | - | |
PWR |
PWR_STANDBY_RTC |
This example shows how to enter the system in STANDBY mode and wake-up from this mode using external RESET or RTC Wake-up Timer through the STM32F0xx RTC & RCC HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - | |
PWR_STOP |
This example shows how to enter the system in STOP with Low power regulator mode and wake-up from this mode using external RESET or wake-up interrupt (all the RCC functions calls use RCC LL API for footprint and performance improvements). | - | - | - | - | X | - | - | - | - | - | ||
SPI |
SPI_FullDuplex_ComPolling |
This example shows how to ensure SPI data buffer transmission/reception in Polling mode between two boards. | - | - | - | - | X | - | - | - | - | - | |
SPI_HalfDuplex_ComPollingIT |
This example shows how to ensure SPI data buffer transmission/reception between two boards by using Polling (LL Driver) an interrupt mode (HAL Driver). | - | - | - | - | X | - | - | - | - | - | ||
TIM |
TIM_6Steps |
This example shows how to configure the TIM1 peripheral to generate 6 Steps PWM signal; The STM32F0xx TIM1 peripheral offers the possibility to program in advance the configuration for the next TIM1 outputs behaviour (step) and change the configuration of all the channels at the same time. This operation is possible when the COM (commutation) event is used; Example using the STM32F0xx TIM HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - | |
UART |
UART_HyperTerminal_IT |
This example describes how to use an UART to transmit data (transmit/receive) between a board and an HyperTerminal PC application in Interrupt mode; This example provides a description of how to use USART peripheral through the STM32F0xx UART HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - | |
UART_HyperTerminal_TxPolling_RxIT |
This example describes how to use an UART to transmit data (transmit/receive) between a board and an HyperTerminal PC application both in Polling and Interrupt modes; This example provides a description of how to use USART peripheral through the STM32F0xx UART HAL & LL API (LL API used for performance improvement). | - | - | - | - | X | - | - | - | - | - | ||
Total number of examples_mix: 11 | 0 | 0 | 0 | 0 | 11 | 0 | 0 | 0 | 0 | 0 | |||
Applications |
EEPROM |
EEPROM_Emulation |
This application shows how to emulate EEPROM on internal flash. | - | - | - | - | - | - | - | - | - | X |
FatFs |
FatFs_uSD |
This application provides a description on how to use STM32Cube firmware with FatFs middleware component as a generic FAT file system module. The objective is to develop an application using most of the features offered by FatFs to configure a microSD drive. | - | - | X | - | - | - | - | X | - | X | |
FreeRTOS |
FreeRTOS_LowPower |
This application shows how to enter and exit low power mode with CMSIS RTOS API. | - | - | X | - | - | - | - | X | - | - | |
FreeRTOS_Mail |
This application shows how to use mail queues with CMSIS RTOS API. | - | - | X | - | - | - | - | - | - | - | ||
FreeRTOS_Mutexes |
This application shows how to use mutexes with CMSIS RTOS API. | - | - | X | - | - | - | - | X | - | - | ||
FreeRTOS_Queues |
This application shows how to use message queues with CMSIS RTOS API. | - | - | X | - | - | - | - | X | - | - | ||
FreeRTOS_Semaphore |
This application shows how to use semaphores with CMSIS RTOS API . | - | - | X | - | - | - | - | X | - | - | ||
FreeRTOS_SemaphoreFromISR |
This application shows how to use semaphore from ISR with CMSIS RTOS API . | - | - | X | - | - | - | - | X | - | - | ||
FreeRTOS_Signal |
This application shows how to perform thread signaling using CMSIS RTOS API. | - | - | X | - | - | - | - | - | - | - | ||
FreeRTOS_SignalFromISR |
This application shows how to perform thread signaling from an interrupt using CMSIS RTOS API. | - | - | X | - | - | - | - | - | - | - | ||
FreeRTOS_ThreadCreation |
This application shows how to implement thread creation using CMSIS RTOS API. | - | - | X | X | X | X | X | X | X | X | ||
FreeRTOS_Timers |
This application shows how to use timers of CMSIS RTOS API. | - | - | X | - | - | - | - | X | - | - | ||
IAP |
IAP_Binary_Template |
This directory contains a set of sources files that build the application to be loaded into Flash memory using In-Application Programming (IAP) through USART. | - | - | X | - | - | - | - | - | - | - | |
IAP_Main |
This directory contains a set of sources files and pre-configured projects that describes how to build an application to be loaded into Flash memory using In-Application Programming (IAP) through USART. | - | - | X | - | - | - | - | - | - | - | ||
STemWin |
STemWin_HelloWorld |
This application shows how to implement a simple "Hello World" example based on STemWin. | - | - | X | - | - | - | - | - | - | - | |
TouchSensing |
TouchSensing_2touchkeys |
This firmware is a basic example on how to use the STMTouch driver with 2 touchkey sensors. The ECS and DTO are also used. | - | - | X | - | - | - | - | X | - | - | |
TouchSensing_Linear |
This firmware is a basic example on how to use the STMTouch driver with 1 linear sensor. The ECS and DTO are also used. | - | - | - | - | - | - | - | - | X | - | ||
TouchSensing_Linear_IT |
This firmware is a basic example on how to use the STMTouch driver with 1 linear sensor. The ECS and DTO are also used. | - | - | - | - | - | - | - | - | X | - | ||
USB_Device |
CDC_Standalone |
This application shows how to use the USB device application based on the Device Communication Class (CDC) following the PSTN subprotocol using the USB Device and UART peripherals. | - | - | - | - | - | - | - | X | - | - | |
CustomHID_Standalone |
This application shows how to use the USB device application based on the Custom HID Class. | - | - | - | - | - | - | - | X | - | - | ||
DFU_Standalone |
This application presents a compliant implementation of the Device Firmware Upgrade (DFU) capability for programming the embedded flash memory through the USB peripheral. | - | - | - | - | - | - | - | X | X | - | ||
HID_Standalone |
This application shows how to use the USB device application based on the Human Interface (HID). | - | - | - | - | - | - | - | X | X | - | ||
MSC_Standalone |
This application shows how to use the USB device application based on the Mass Storage Class (MSC). | - | - | - | - | - | - | - | X | - | - | ||
Total number of applications: 41 | 0 | 0 | 15 | 1 | 1 | 1 | 1 | 14 | 5 | 3 | |||
Demonstrations |
- |
Demo |
This demonstration firmware is based on STM32Cube. It helps you to discover STM32 Cortex-M devices that can be plugged on a STM32 Nucleo board. | - | - | X | X | X | X | X | - | X | X |
Gravitech_4Digits_Counter |
This demonstration shows how to use the Gravitech 7 segment 4 digits shield with a Nucleo 32 Board. | X | X | - | - | - | - | - | - | - | - | ||
Total number of demonstrations: 9 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | |||
Total number of projects: 504 | 20 | 20 | 63 | 33 | 134 | 37 | 34 | 57 | 54 | 52 |