# STM32CubeF1 Firmware Examples for STM32F1xx Series

Copyright 2017 STMicroelectronics

The STM32CubeF1 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:

- Examples uses only the HAL and BSP drivers (Middleware not used), having as objective to demonstrate the product/peripherals features and usage. The examples are organized per peripheral (a folder for each peripheral, ex. TIM) and offers different complexity level from basic usage of a given peripheral (ex. PWM generation using timer) till integration of several peripherals(use DAC for signals generation with synchronization from TIM6 and DMA). Board resources usage is reduced to the strict minimum.
- Examples_LL uses only the LL drivers (HAL and Middleware not used), offering optimum implementation of typical use cases of the peripheral features and configuration procedures. The examples are organized per peripheral (a folder for each peripheral, ex. TIM) and runs exclusively on Nucleo board.
- Examples_MIX uses only HAL, BSP and LL drivers (Middleware are not used), having as objective to demonstrate how to use both HAL and LL APIs in the same application, to combine the advantages of both APIs (HAL offers high level and functionalities oriented APIs, with high portability level and hide product or IPs complexity to end user. While LL offers low level APIs at registers level with better optimization). The examples are organized per peripheral (a folder for each peripheral, ex. TIM) and runs exclusively on Nucleo board.
- Applications intends to demonstrate the product performance and how to use the different Middleware stacks available. The Applications are organized per Middleware (a folder for each Middleware, ex. USB Host) or product feature that need high level firmware bricks (ex. Audio). Integration Applications that use several Middleware stacks are provided as well.
- Demonstrations aims to integrate and run the maximum of peripherals and Middleware stacks to showcase the product features and performance.
- A Template project is provided to allow user to quickly build any firmware application on a given board.

The examples are located under STM32Cube_FW_F1_VX.Y.Z\Projects\, and all of them have the same structure:

- \Inc folder that contains all header files.
- \Src folder for the sources code.
- \EWARM, \MDK-ARM and \SW4STM32 folders contain the preconfigured project for each toolchain.
- A readme describing the example behavior and the environment required to run the example.

To run the example, you have to do the following:

- Open the example using your preferred toolchain.
- Rebuild all files and load the image into target memory.
- Run the example by following the readme instructions.
- Note: refer to section "Development Toolchains and Compilers" and "Supported Devices and EVAL, Nucleo and Discovery boards" of the Firmware package release notes to know about the SW/HW environment used for the Firmware development and validation. The correct operation of the provided examples is not guaranteed on some environments, for example when using different compiler or board versions.

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 STM32Cube_FW_F1 Firmware package.
In this table, the label CubeMX means the projects have been created using STM32CubeMX, the STM32Cube initialization code generator. Those projects can be opened with this tools to modify the projects itself. The others projects are manually created to demonstrate the product features.

Reference materials available on www.st.com/stm32cubefw

- Latest release of STM32CubeF1 Firmware package.
- UM1847: Getting started with STM32CubeF1 for STM32F1 Series.
- UM1853: STM32CubeF1 Nucleo demonstration firmware.
- UM1816: Description of STM32F1xx HAL drivers.
- UM1734: STM32Cube USB Device library.
- UM1720: STM32Cube USB host library.
- UM1721: Developing Applications on STM32Cube with FatFs.
- UM1722: Developing Applications on STM32Cube with RTOS.
- UM1713: Developing applications on STM32Cube with LwIP TCP/IP stack.
- UM1709: STM32Cube Ethernet IAP example.

Level | Module Name | Project Name | Description | Overall | Unique | STM32VL-Discovery | STM32F103RB-Nucleo | STM3210E_EVAL | STM3210C_EVAL
Templates | - | Starter project | This projects provides a reference template that can be used to build any firmware application. | 4 |  | X | X | X | X
Total number of templates | 4 | 1 | 1 | 1 | 1 | 1
Templates_LL | - | Starter project | This projects provides a reference template through the LL API that can be used to build any firmware application. | 4 |  | X | X | X | X
Total number of templates_ll | 4 | 1 | 1 | 1 | 1 | 1
Examples | - | BSP | This example provides a description of how to use the different BSP drivers. | 2 |  | - | - | X | X
ADC | ADC_AnalogWatchdog | How to use the ADC peripheral to perform conversions with an analog watchdog and out-of-window interrupts enabled. | 1 |  | - | X | - | -
ADC_DualModeInterleaved | How to use two ADC peripherals to perform conversions in dual interleaved mode. | 1 |  | - | - | - | X
ADC_Regular_injected_groups | How to use the ADC peripheral to perform conversions using the two ADC groups: regular group for ADC conversions on the main stream, and injected group for ADC conversions limited to specific events (conversions injected into the main conversion stream). | 2 |  | X | - | - | X
ADC_Sequencer | How to use the ADC peripheral with a sequencer to convert several channels. | 1 |  | - | - | X | -
CAN | CAN_Networking | How to configure the CAN peripheral to send and receive CAN frames in normal mode. | 1 |  | - | - | X | -
CRC | CRC_Example | How to configure the CRC using 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). | 4 |  | X | X | X | X
Cortex | CORTEXM_MPU | Presentation of the MPU feature. This example configures a memory area as privileged read-only, and attempts to perform read and write operations in different modes. | 1 |  | - | - | X | -
CORTEXM_ModePrivilege | How to modify the Thread mode privilege access and stack. Thread mode is entered on reset or when returning from an exception. | 1 |  | - | - | X | -
CORTEXM_SysTick | How to use the default SysTick configuration with a 1 ms timebase to toggle LEDs. | 1 |  | - | - | X | -
DAC | DAC_SignalsGeneration | How to use the DAC peripheral to generate several signals using the DMA controller. | 1 |  | - | - | - | X
DAC_SimpleConversion | How to use the DAC peripheral to do a simple conversion. | 1 |  | - | - | X | -
DMA | DMA_FLASHToRAM | How to use a DMA to transfer a word data buffer from Flash memory to embedded SRAM through the HAL API. | 1 |  | - | - | X | -
FLASH | FLASH_EraseProgram | How to configure and use the FLASH HAL API to erase and program the internal Flash memory. | 1 |  | - | X | - | -
FLASH_WriteProtection | How to configure and use the FLASH HAL API to enable and disable the write protection of the internal Flash memory. | 1 |  | - | X | - | -
FSMC | FSMC_NAND | How to configure the FSMC controller to access the NAND memory. | 1 |  | - | - | X | -
FSMC_NOR | How to configure the FSMC controller to access the NOR memory. | 1 |  | - | - | X | -
FSMC_NOR_CodeExecute | How to build an application to be loaded into the NOR memory mounted on board and then execute it from internal Flash memory. | 1 |  | - | - | X | -
FSMC_SRAM | How to configure the FSMC controller to access the SRAM memory. | 1 |  | - | - | X | -
FSMC_SRAM_DataMemory | How to configure the FSMC controller to access the SRAM memory including the heap and stack. | 1 |  | - | - | X | -
GPIO | GPIO_EXTI | How to configure external interrupt lines. | 1 |  | X | - | - | -
GPIO_IOToggle | How to configure and use GPIOs through the HAL API. | 4 |  | X | X | X | X
HAL | HAL_TimeBase_RTC_ALARM | How to customize HAL using RTC alarm as main source of time base, instead of Systick. | 4 |  | X | X | X | X
HAL_TimeBase_TIM | How to customize HAL using a general-purpose timer as main source of time base instead of Systick. | 4 |  | X | X | X | X
I2C | I2C_TwoBoards_AdvComIT | How to handle I2C data buffer transmission/reception between two boards, using an interrupt. | 2 |  | - | X | X | -
I2C_TwoBoards_ComDMA | How to handle I2C data buffer transmission/reception between two boards, via DMA. | 2 |  | - | X | X | -
I2C_TwoBoards_ComIT | How to handle I2C data buffer transmission/reception between two boards, using an interrupt. | 2 |  | - | X | X | -
I2C_TwoBoards_ComPolling | How to handle I2C data buffer transmission/reception between two boards, in polling mode. | 2 |  | - | X | X | -
I2C_TwoBoards_RestartAdvComIT | How to perform multiple I2C data buffer transmission/reception between two boards, in interrupt mode and with restart condition. | 2 |  | - | X | X | -
I2C_TwoBoards_RestartComIT | How to handle single I2C data buffer transmission/reception between two boards, in interrupt mode and with restart condition. | 2 |  | - | X | X | -
I2S | I2S_Audio | Basic implementation of audio features. This example allows playing an audio file with an external codec on the STM32F1xx board through the I2S peripheral using DMA transfer. | 1 |  | - | - | - | X
IWDG | IWDG_Example | This example describes how to reload the IWDG counter and to simulate a software fault by generating an MCU IWDG reset when a programmed time period has elapsed. | 1 |  | - | - | - | X
PWR | PWR_PVD | How to configure the programmable voltage detector by using an external interrupt line. External DC supply must be used to supply Vdd. | 1 |  | - | - | X | -
PWR_SLEEP | How to enter the Sleep mode and wake up from this mode by using an interrupt. | 1 |  | X | - | - | -
PWR_STANDBY | How to enter the Standby mode and wake up from this mode by using an external reset or the WKUP pin. | 1 |  | - | X | - | -
RCC | RCC_ClockConfig | Configuration of the system clock (SYSCLK) and modification of the clock settings in Run mode, using the RCC HAL API. | 4 |  | X | X | X | X
RTC | RTC_Alarm | Configuration and generation of an RTC alarm using the RTC HAL API. | 1 |  | - | X | - | -
RTC_Calendar | Configuration of the calendar using the RTC HAL API. | 1 |  | - | - | X | -
RTC_LSI | Use of the LSI clock source autocalibration to get a precise RTC clock. | 1 |  | - | - | - | X
RTC_LowPower_STANDBY | How to enter STANDBY mode and wake up from this mode using the RTC alarm event. | 1 |  | X | - | - | -
RTC_Tamper | Configuration of the RTC HAL API to write/read data to/from RTC Backup registers. | 1 |  | - | - | X | -
SMARTCARD | SMARTCARD_T0 | Firmware smartcard interface based on USART. The main purpose of this firmware example is to provide resources that ease the development of applications using the USART in Smartcard mode. | 2 |  | - | - | X | X
SPI | SPI_FullDuplex_ComDMA | Data buffer transmission/reception between two boards via SPI using DMA. | 2 |  | X | X | - | -
SPI_FullDuplex_ComIT | Data buffer transmission/reception between two boards via SPI using Interrupt mode. | 2 |  | X | X | - | -
SPI_FullDuplex_ComPolling | Data buffer transmission/reception between two boards via SPI using Polling mode. | 2 |  | X | X | - | -
TIM | TIM_ComplementarySignals | Configuration of the TIM1 peripheral to generate three complementary signals, insert a predefined deadtime value, use the break feature, and lock the break and dead-time configuration. | 1 |  | - | - | X | -
TIM_DMA | Use of the DMA with TIMER Update request to transfer data from memory to TIMER Capture Compare Register 3 (TIM1_CCR3). | 2 |  | - | X | X | -
TIM_InputCapture | Use of the TIM peripheral to measure an external signal frequency. | 1 |  | - | - | X | -
TIM_PWMOutput | Configuration of the TIM peripheral in PWM (pulse width modulation) mode. | 1 |  | - | - | X | -
TIM_TimeBase | Configuration of the TIM peripheral to generate a timebase of one second with the corresponding interrupt request. | 4 |  | X | X | X | X
UART | UART_HyperTerminal_DMA | UART transmission (transmit/receive) in DMA mode between a board and an HyperTerminal PC application. | 3 |  | X | X | - | X
UART_Printf | Re-routing of the C library printf function to the UART. | 4 |  | X | X | X | X
UART_TwoBoards_ComDMA | UART transmission (transmit/receive) in DMA mode between two boards. | 3 |  | X | X | - | X
UART_TwoBoards_ComIT | UART transmission (transmit/receive) in Interrupt mode between two boards. | 3 |  | X | X | - | X
UART_TwoBoards_ComPolling | UART transmission (transmit/receive) in Polling mode between two boards. | 3 |  | X | X | - | X
WWDG | WWDG_Example | Configuration of the HAL API to periodically update the WWDG counter and simulate a software fault that generates an MCU WWDG reset when a predefined time period has elapsed. | 1 |  | - | X | - | -
Total number of examples | 98 | 56 | 18 | 27 | 34 | 19
Examples_LL | ADC | ADC_AnalogWatchdog | How to use an ADC peripheral with an ADC analog watchdog to monitor a channel and detect when the corresponding conversion data is outside the window thresholds. | 1 |  | - | X | - | -
ADC_ContinuousConversion_TriggerSW | How to use an ADC peripheral to perform continuous ADC conversions on a channel, from a software start. | 1 |  | - | X | - | -
ADC_ContinuousConversion_TriggerSW_Init | How to use an ADC peripheral to perform continuous ADC conversions on a channel, from a software start. | 1 |  | - | X | - | -
ADC_GroupsRegularInjected | How to use an ADC peripheral with both ADC groups (regular and injected) in their intended use cases. | 1 |  | - | X | - | -
ADC_MultiChannelSingleConversion | How to use an ADC peripheral to convert several channels. ADC conversions are performed successively in a scan sequence. | 1 |  | - | X | - | -
ADC_MultimodeDualInterleaved | How to use several ADC peripherals in multimode and interleaved mode. | 1 |  | - | X | - | -
ADC_SingleConversion_TriggerSW | How to use an ADC peripheral to perform a single ADC conversion on a channel at each software start. This example uses the polling programming model (for interrupt or DMA programming models, please refer to other examples). | 1 |  | - | X | - | -
ADC_SingleConversion_TriggerSW_DMA | How to use an ADC peripheral to perform a single ADC conversion on a channel, at each software start. This example uses the DMA programming model (for polling or interrupt programming models, refer to other examples). | 1 |  | - | X | - | -
ADC_SingleConversion_TriggerSW_IT | How to use an ADC peripheral to perform a single ADC conversion on a channel, at each software start. This example uses the interrupt programming model (for polling or DMA programming models, please refer to other examples). | 1 |  | - | X | - | -
ADC_SingleConversion_TriggerTimer_DMA | How to use an ADC peripheral to perform a single ADC conversion on a channel at each trigger event from a timer. Converted data is indefinitely transferred by DMA into a table (circular mode). | 1 |  | - | X | - | -
ADC_TemperatureSensor | How to use an ADC peripheral to perform a single ADC conversion on the internal temperature sensor and calculate the temperature in degrees Celsius. | 1 |  | - | X | - | -
CORTEX | CORTEX_MPU | Presentation of the MPU feature. This example configures a memory area as privileged read-only, and attempts to perform read and write operations in different modes. | 1 |  | - | - | X | -
CRC | CRC_CalculateAndCheck | How to configure the CRC calculation unit to compute a CRC code for a given data buffer, based on a fixed generator polynomial (default value 0x4C11DB7). The peripheral initialization is done using LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
DAC | DAC_GenerateConstantSignal_TriggerSW | How to use the DAC peripheral to generate a constant voltage signal. This example is based on the STM32F1xx DAC LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | - | X | -
DAC_GenerateWaveform_TriggerHW | How to use the DAC peripheral to generate a voltage waveform from a digital data stream transferred by DMA. This example is based on the STM32F1xx DAC LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | - | X | -
DAC_GenerateWaveform_TriggerHW_Init | How to use the DAC peripheral to generate a voltage waveform from a digital data stream transferred by DMA. This example is based on the STM32F1xx DAC LL API. The peripheral initialization uses LL initialization functions to demonstrate LL init usage. | 1 |  | - | - | 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). | 1 |  | - | 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. | 1 |  | - | X | - | -
EXTI | EXTI_ToggleLedOnIT | How to configure the EXTI and use GPIOs to toggle the user LEDs available on the board when a user button is pressed. It is based on the STM32F1xx LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
EXTI_ToggleLedOnIT_Init | How to configure the EXTI and use GPIOs to toggle the user LEDs available on the board when a user button is pressed. This example is based on the STM32F1xx LL API. The peripheral initialization uses LL initialization functions to demonstrate LL init usage. | 1 |  | - | X | - | -
GPIO | GPIO_InfiniteLedToggling | How to configure and use GPIOs to toggle the on-board user LEDs every 250 ms. This example is based on the STM32F1xx LL API. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
GPIO_InfiniteLedToggling_Init | How to configure and use GPIOs to toggle the on-board user LEDs every 250 ms. This example is based on the STM32F1xx LL API. The peripheral is initialized with LL initialization function to demonstrate LL init usage. | 1 |  | - | X | - | -
I2C | I2C_OneBoard_AdvCommunication_DMAAndIT | How to exchange data between an I2C master device in DMA mode and an I2C slave device in interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_OneBoard_Communication_DMAAndIT | How to transmit data bytes from an I2C master device using DMA mode to an I2C slave device using interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_OneBoard_Communication_IT | How to handle the reception of one data byte from an I2C slave device by an I2C master device. Both devices operate in interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_OneBoard_Communication_IT_Init | How to handle the reception of one data byte from an I2C slave device by an I2C master device. Both devices operate in interrupt mode. The peripheral is initialized with LL initialization function to demonstrate LL init usage. | 1 |  | - | X | - | -
I2C_OneBoard_Communication_PollingAndIT | How to transmit data bytes from an I2C master device using polling mode to an I2C slave device using interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_TwoBoards_MasterRx_SlaveTx_IT | How to handle the reception of one data byte from an I2C slave device by an I2C master device. Both devices operate in interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_TwoBoards_MasterTx_SlaveRx | How to transmit data bytes from an I2C master device using polling mode to an I2C slave device using interrupt mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
I2C_TwoBoards_MasterTx_SlaveRx_DMA | How to transmit data bytes from an I2C master device using DMA mode to an I2C slave device using DMA mode. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
IWDG | IWDG_RefreshUntilUserEvent | How to configure the IWDG peripheral to ensure periodical counter update and generate an MCU IWDG reset when a user button is pressed. The peripheral is initialized with LL unitary service functions to optimize for performance and size. | 1 |  | - | X | - | -
PWR | PWR_EnterStandbyMode | How to enter the Standby mode and wake up from this mode by using an external reset or a wakeup interrupt. | 1 |  | - | X | - | -
PWR_EnterStopMode | How to enter the STOP_MAINREGU mode. | 1 |  | - | X | - | -
RCC | RCC_OutputSystemClockOnMCO | This example describes how to configure MCO pin (PA8) to output the system clock. | 1 |  | - | X | - | -
RCC_UseHSEasSystemClock | Use of the RCC LL API to start the HSE and use it as system clock. | 1 |  | - | X | - | -
RCC_UseHSI_PLLasSystemClock | Modification of the PLL parameters in run time. | 1 |  | - | X | - | -
RTC | RTC_Alarm | Configuration of the RTC LL API to configure and generate an alarm using the RTC peripheral. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
RTC_Alarm_Init | Configuration of the RTC LL API to configure and generate an alarm using the RTC peripheral. The peripheral initialization uses the LL initialization function. | 1 |  | - | X | - | -
RTC_Calendar | Configuration of the LL API to set the RTC calendar. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
RTC_Tamper | Configuration of the Tamper using the RTC LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
SPI | SPI_OneBoard_HalfDuplex_DMA | Configuration of GPIO and SPI peripherals to transmit bytes from an SPI Master device to an SPI Slave device in DMA mode. This example is based on the STM32F1xx SPI LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
SPI_OneBoard_HalfDuplex_DMA_Init | Configuration of GPIO and SPI peripherals to transmit bytes from an SPI Master device to an SPI Slave device in DMA mode. This example is based on the STM32F1xx SPI LL API. The peripheral initialization uses the LL initialization function to demonstrate LL init usage. | 1 |  | - | X | - | -
SPI_OneBoard_HalfDuplex_IT | Configuration of GPIO and SPI peripherals to transmit bytes from an SPI Master device to an SPI Slave device in Interrupt mode. This example is based on the STM32F1xx SPI LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
SPI_TwoBoards_FullDuplex_DMA | Data buffer transmission and receptionvia SPI using DMA mode. This example is based on the STM32F1xx SPI LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
SPI_TwoBoards_FullDuplex_IT | Data buffer transmission and receptionvia SPI using Interrupt mode. This example is based on the STM32F1xx SPI LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM | TIM_BreakAndDeadtime | Configuration of the TIM peripheral to – 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 STM32F1xx TIM LL API. | 1 |  | - | X | - | -
TIM_DMA | Use of the DMA with a timer update request to transfer data from memory to Timer Capture Compare Register 3 (TIMx_CCR3). This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM_InputCapture | Use of the TIM peripheral to measure a periodic signal frequency provided either by an external signal generator or by another timer instance. This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM_OnePulse | Configuration of 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 STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM_OutputCompare | Configuration of the TIM peripheral to generate an output waveform in different output compare modes. This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM_PWMOutput | Use of a timer peripheral to generate a PWM output signal and update the PWM duty cycle. This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
TIM_PWMOutput_Init | Use of a timer peripheral to generate a PWM output signal and update the PWM duty cycle. This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL initialization function to demonstrate LL init. | 1 |  | - | X | - | -
TIM_TimeBase | Configuration of the TIM peripheral to generate a timebase. This example is based on the STM32F1xx TIM LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART | USART_Communication_Rx_IT | Configuration of GPIO and USART peripherals to receive characters from an HyperTerminal (PC) in Asynchronous mode using an interrupt. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART_Communication_Rx_IT_Continuous | Configuration of GPIO and USART peripherals to continuously receive characters from an HyperTerminal (PC) in Asynchronous mode using an interrupt. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART_Communication_Rx_IT_Init | Configuration of GPIO and USART peripherals to receive characters from an HyperTerminal (PC) in Asynchronous mode using an interrupt. The peripheral initialization uses the LL initialization function to demonstrate LL init. | 1 |  | - | X | - | -
USART_Communication_Tx | Configuration of GPIO and USART peripherals to send characters asynchronously to an HyperTerminal (PC) in Polling mode. If the transfer could not be complete within the allocated time, a timeout allows to exit from the sequence with timeout error. This example is based on STM32F1xx USART LL API. | 1 |  | - | X | - | -
USART_Communication_TxRx_DMA | Configuration of GPIO and USART peripherals to send characters asynchronously to/from an HyperTerminal (PC) in DMA mode. | 1 |  | - | X | - | -
USART_Communication_Tx_IT | Configuration of GPIO and USART peripheral to send characters asynchronously to HyperTerminal (PC) in Interrupt mode. This example is based on the STM32F1xx USART LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART_HardwareFlowControl | Configuration of GPIO and USART peripheral to receive characters asynchronously from an HyperTerminal (PC) in Interrupt mode with the Hardware Flow Control feature enabled. This example is based on STM32F1xx USART LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART_SyncCommunication_FullDuplex_DMA | Configuration of GPIO, USART, DMA and SPI peripherals to transmit bytes between a USART and an SPI (in slave mode) in DMA mode. This example is based on the STM32F1xx USART LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
USART_SyncCommunication_FullDuplex_IT | Configuration of GPIO, USART, DMA and SPI peripherals to transmit bytes between a USART and an SPI (in slave mode) in Interrupt mode. This example is based on the STM32F1xx USART LL API (the SPI uses the DMA to receive/transmit characters sent from/received by the USART). The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | 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. | 1 |  | - | X | - | -
UTILS_ReadDeviceInfo | This example describes how to read UID, Device ID and Revision ID and save them into a global information buffer. | 1 |  | - | X | - | -
WWDG | WWDG_RefreshUntilUserEvent | Configuration of the WWDG to periodically update the counter and generate an MCU WWDG reset when a user button is pressed. The peripheral initialization uses the LL unitary service functions for optimization purposes (performance and size). | 1 |  | - | X | - | -
Total number of examples_ll | 65 | 65 | 0 | 61 | 4 | 0
Examples_MIX | ADC | ADC_SingleConversion_TriggerSW_IT | How to use the ADC to perform a single ADC channel conversion at each software start. This example uses the interrupt programming model (for polling and DMA programming models, please refer to other examples). It is based on the STM32F1xx ADC HAL and LL API. The LL API is used for performance improvement. | 1 |  | - | - | X | -
CRC | CRC_CalculateAndCheck | How to use a CRC peripheral through the STM32F1xx CRC HAL & LL API (an LL API is used for performance improvement). A fixed CRC-32 (Ethernet) generator polynomial: 0x4C11DB7 is used in the CRC peripheral. | 1 |  | - | X | - | -
DMA | DMA_FLASHToRAM | How to use a DMA to transfer a word data buffer from Flash memory to embedded SRAM through the STM32F1xx DMA HAL and LL API. The LL API is used for performance improvement. | 1 |  | - | X | - | -
I2C | I2C_OneBoard_ComSlave7_10bits_IT | How to perform I2C data buffer transmission/reception between one master and 2 slaves with different address sizes (7-bit or 10-bit) and at different Max speed support (400Khz or 100Khz). This example uses the STM32F1xx I2C HAL and LL API (LL API usage for performance improvement) and an interrupt. | 1 |  | - | X | - | -
PWR | PWR_STOP | How to enter the STOP with Low power regulator mode and wake up from this mode by using external reset or wakeup interrupt (all the RCC function calls use RCC LL API for minimizing footprint and maximizing performance). | 1 |  | - | X | - | -
SPI | SPI_FullDuplex_ComPolling | Data buffer transmission/reception between two boards via SPI using Polling mode. | 1 |  | - | X | - | -
SPI_HalfDuplex_ComPollingIT | Data buffer transmission/reception between two boards via SPI using Polling (LL driver) and Interrupt modes (HAL driver). | 1 |  | - | X | - | -
TIM | TIM_6Steps | Configuration of the TIM1 peripheral to generate six-step PWM signals. | 1 |  | - | X | - | -
TIM_PWMInput | Use of the TIM peripheral to measure an external signal frequency and duty cycle. | 1 |  | - | X | - | -
UART | UART_HyperTerminal_IT | Use of a UART to transmit data (transmit/receive) between a board and an HyperTerminal PC application in Interrupt mode. This example describes how to use the USART peripheral through the STM32F1xx UART HAL and LL API, the LL API being used for performance improvement. | 1 |  | - | X | - | -
UART_HyperTerminal_TxPolling_RxIT | Use of a UART to transmit data (transmit/receive) between a board and an HyperTerminal PC application both in Polling and Interrupt modes. This example describes how to use the USART peripheral through the STM32F1xx UART HAL and LL API, the LL API being used for performance improvement. | 1 |  | - | X | - | -
Total number of examples_mix | 11 | 11 | 0 | 10 | 1 | 0
Applications | EEPROM | EEPROM_Emulation | Please refer to AN2594 for further details regarding this application. | 1 |  | - | X | - | -
FatFs | FatFs_uSD | How to use STM32Cube firmware with FatFs middleware component as a generic FAT file system module. This example develops an application exploiting FatFs features, with a microSD drive configuration. | 2 |  | - | - | X | X
FreeRTOS | FreeRTOS_Mail | How to use mail queues with CMSIS RTOS API. | 1 |  | - | - | X | -
FreeRTOS_Signal | How to perform thread signaling using CMSIS RTOS API. | 1 |  | - | - | X | -
FreeRTOS_SignalFromISR | How to perform thread signaling from an interrupt using CMSIS RTOS API. | 1 |  | - | - | X | -
FreeRTOS_ThreadCreation | How to implement thread creation using CMSIS RTOS API. | 3 |  | - | X | 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) using the USART. | 2 |  | - | - | X | 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). | 2 |  | - | - | X | X
LwIP | LwIP_TCP_Echo_Client | This application shows how to run TCP Echo Client application based on Raw API of LwIP TCP/IP stack. | 1 |  | - | - | - | X
LwIP_TCP_Echo_Server | This application shows how to run TCP Echo Server application based on Raw API of LwIP TCP/IP stack. | 1 |  | - | - | - | X
LwIP_UDP_Echo_Client | This application shows how to run a UDP Echo Client application based on Raw API of LwIP TCP/IP stack. | 1 |  | - | - | - | X
LwIP_UDP_Echo_Server | This application shows how to run UDP Echo Server application based on Raw API of LwIP TCP/IP stack. | 1 |  | - | - | - | X
STemWin | STemWin_HelloWorld | Simple "Hello World" example based on STemWin. | 2 |  | - | - | X | X
USB_Device | CDC_Standalone | Use of the USB device application based on the Device Communication Class (CDC) and following the PSTN subprotocol. This application uses the USB Device and UART peripherals. | 2 |  | - | - | X | X
CustomHID_Standalone | Use of the USB device application based on the Custom HID Class. | 2 |  | - | - | X | X
DFU_Standalone | Compliant implementation of the Device Firmware Upgrade (DFU) capability to program the embedded Flash memory through the USB peripheral. | 2 |  | - | - | X | X
HID_Standalone | Use of the USB device application based on the Human Interface (HID). | 3 |  | - | X | X | X
MSC_Standalone | Use of the USB device application based on the Mass Storage Class (MSC). | 2 |  | - | - | X | X
USB_Host | CDC_Standalone | Use of the USB host application based on the CDC class. | 1 |  | - | - | - | X
HID_RTOS | Use of the USB host application based on the HID class. | 1 |  | - | - | - | X
HID_Standalone | Use of the USB host application based on the HID class. | 1 |  | - | - | - | X
MSC_RTOS | This application shows how to use the USB host application based on the Mass Storage Class (MSC). | 1 |  | - | - | - | X
MSC_Standalone | Use of the USB host application based on the Mass Storage Class (MSC). | 1 |  | - | - | - | X
Total number of applications | 35 | 23 | 0 | 3 | 13 | 19
Demonstrations | - | Adafruit_LCD_1_8_SD_Joystick | Demonstration firmware based on STM32Cube. This example helps you to discover STM32 Cortex-M devices that are plugged onto your STM32 Nucleo board. | 1 |  | - | X | - | -
Total number of demonstrations | 1 | 1 | 0 | 1 | 0 | 0
Total number of projects | 218 | 158 | 20 | 104 | 54 | 40