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:
The examples are located under STM32Cube_FW_STM32CubeF1_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 STM32CubeF1 Firmware package.
Level | Module Name | Project Name | Description | 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. | X | X | X | X |
Total number of templates: 4 | 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. | X | X | X | X |
Total number of templates_ll: 4 | 1 | 1 | 1 | 1 | |||
Examples |
- |
BSP |
This example provides a description of how to use the different BSP drivers. | - | - | X | X |
ADC |
ADC_AnalogWatchdog |
How to use the ADC peripheral to perform conversions with an analog watchdog and out-of-window interrupts enabled. | - | X | - | - | |
ADC_DualModeInterleaved |
How to use two ADC peripherals to perform conversions in dual interleaved mode. | - | - | - | 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). | X | - | - | X | ||
ADC_Sequencer |
How to use the ADC peripheral with a sequencer to convert several channels. | - | - | X | - | ||
CAN |
CAN_Networking |
How to configure the CAN peripheral to send and receive CAN frames in normal mode. | - | - | 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). | 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. | - | - | 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. | - | - | X | - | ||
CORTEXM_SysTick |
How to use the default SysTick configuration with a 1 ms timebase to toggle LEDs. | - | - | X | - | ||
DAC |
DAC_SignalsGeneration |
How to use the DAC peripheral to generate several signals using the DMA controller. | - | - | - | X | |
DAC_SimpleConversion |
How to use the DAC peripheral to do a simple conversion. | - | - | 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. | - | - | X | - | |
FLASH |
FLASH_EraseProgram |
How to configure and use the FLASH HAL API to erase and program the internal Flash memory. | - | X | - | - | |
FLASH_WriteProtection |
How to configure and use the FLASH HAL API to enable and disable the write protection of the internal Flash memory. | - | X | - | - | ||
FSMC |
FSMC_NAND |
How to configure the FSMC controller to access the NAND memory. | - | - | X | - | |
FSMC_NOR |
How to configure the FSMC controller to access the NOR memory. | - | - | 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. | - | - | X | - | ||
FSMC_SRAM |
How to configure the FSMC controller to access the SRAM memory. | - | - | X | - | ||
FSMC_SRAM_DataMemory |
How to configure the FSMC controller to access the SRAM memory including the heap and stack. | - | - | X | - | ||
GPIO |
GPIO_EXTI |
How to configure external interrupt lines. | X | - | - | - | |
GPIO_IOToggle |
How to configure and use GPIOs through the HAL API. | 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. | 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. | X | X | X | X | ||
I2C |
I2C_TwoBoards_AdvComIT |
How to handle I2C data buffer transmission/reception between two boards, using an interrupt. | - | X | X | - | |
I2C_TwoBoards_ComDMA |
How to handle I2C data buffer transmission/reception between two boards, via DMA. | - | X | X | - | ||
I2C_TwoBoards_ComIT |
How to handle I2C data buffer transmission/reception between two boards, using an interrupt. | - | X | X | - | ||
I2C_TwoBoards_ComPolling |
How to handle I2C data buffer transmission/reception between two boards, in polling mode. | - | X | X | - | ||
I2C_TwoBoards_RestartAdvComIT |
How to perform multiple I2C data buffer transmission/reception between two boards, in interrupt mode and with restart condition. | - | X | X | - | ||
I2C_TwoBoards_RestartComIT |
How to handle single I2C data buffer transmission/reception between two boards, in interrupt mode and with restart condition. | - | 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. | - | - | - | 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. | - | - | - | 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. | - | - | X | - | |
PWR_SLEEP |
How to enter the Sleep mode and wake up from this mode by using an interrupt. | X | - | - | - | ||
PWR_STANDBY |
How to enter the Standby mode and wake up from this mode by using an external reset or the WKUP pin. | - | X | - | - | ||
RCC |
RCC_ClockConfig |
Configuration of the system clock (SYSCLK) and modification of the clock settings in Run mode, using the RCC HAL API. | X | X | X | X | |
RTC |
RTC_Alarm |
Configuration and generation of an RTC alarm using the RTC HAL API. | - | X | - | - | |
RTC_Calendar |
Configuration of the calendar using the RTC HAL API. | - | - | X | - | ||
RTC_LSI |
Use of the LSI clock source autocalibration to get a precise RTC clock. | - | - | - | X | ||
RTC_LowPower_STANDBY |
How to enter STANDBY mode and wake up from this mode using the RTC alarm event. | X | - | - | - | ||
RTC_Tamper |
Configuration of the RTC HAL API to write/read data to/from RTC Backup registers. | - | - | 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. | - | - | X | X | |
SPI |
SPI_FullDuplex_ComDMA |
Data buffer transmission/reception between two boards via SPI using DMA. | X | X | - | - | |
SPI_FullDuplex_ComIT |
Data buffer transmission/reception between two boards via SPI using Interrupt mode. | X | X | - | - | ||
SPI_FullDuplex_ComPolling |
Data buffer transmission/reception between two boards via SPI using Polling mode. | 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. | - | - | X | - | |
TIM_DMA |
Use of the DMA with TIMER Update request to transfer data from memory to TIMER Capture Compare Register 3 (TIM1_CCR3). | - | X | X | - | ||
TIM_InputCapture |
Use of the TIM peripheral to measure an external signal frequency. | - | - | X | - | ||
TIM_PWMOutput |
Configuration of the TIM peripheral in PWM (pulse width modulation) mode. | - | - | X | - | ||
TIM_TimeBase |
Configuration of the TIM peripheral to generate a timebase of one second with the corresponding interrupt request. | X | X | X | X | ||
UART |
UART_HyperTerminal_DMA |
UART transmission (transmit/receive) in DMA mode between a board and an HyperTerminal PC application. | X | X | - | X | |
UART_Printf |
Re-routing of the C library printf function to the UART. | X | X | X | X | ||
UART_TwoBoards_ComDMA |
UART transmission (transmit/receive) in DMA mode between two boards. | X | X | - | X | ||
UART_TwoBoards_ComIT |
UART transmission (transmit/receive) in Interrupt mode between two boards. | X | X | - | X | ||
UART_TwoBoards_ComPolling |
UART transmission (transmit/receive) in Polling mode between two boards. | 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. | - | X | - | - | |
Total number of examples: 98 | 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. | - | X | - | - |
ADC_ContinuousConversion_TriggerSW |
How to use an ADC peripheral to perform continuous ADC conversions on a channel, from a software start. | - | X | - | - | ||
ADC_ContinuousConversion_TriggerSW_Init |
How to use an ADC peripheral to perform continuous ADC conversions on a channel, from a software start. | - | X | - | - | ||
ADC_GroupsRegularInjected |
How to use an ADC peripheral with both ADC groups (regular and injected) in their intended use cases. | - | X | - | - | ||
ADC_MultiChannelSingleConversion |
How to use an ADC peripheral to convert several channels. ADC conversions are performed successively in a scan sequence. | - | X | - | - | ||
ADC_MultimodeDualInterleaved |
How to use several ADC peripherals in multimode and interleaved mode. | - | 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). | - | 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). | - | 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). | - | 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). | - | 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. | - | 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. | - | - | 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). | - | 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). | - | - | 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). | - | - | 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. | - | - | 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 |
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). | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | 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. | - | X | - | - | |
PWR_EnterStopMode |
How to enter the STOP_MAINREGU mode. | - | X | - | - | ||
RCC |
RCC_OutputSystemClockOnMCO |
This example describes how to configure MCO pin (PA8) to output the system clock. | - | X | - | - | |
RCC_UseHSEasSystemClock |
Use of the RCC LL API to start the HSE and use it as system clock. | - | X | - | - | ||
RCC_UseHSI_PLLasSystemClock |
Modification of the PLL parameters in run time. | - | 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). | - | 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. | - | 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). | - | 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). | - | 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). | - | 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. | - | 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). | - | 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). | - | 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). | - | 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. | - | 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). | - | 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). | - | 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). | - | 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). | - | 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). | - | 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. | - | 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). | - | 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). | - | 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). | - | 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. | - | 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. | - | X | - | - | ||
USART_Communication_TxRx_DMA |
Configuration of GPIO and USART peripherals to send characters asynchronously to/from an HyperTerminal (PC) in DMA mode. | - | 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). | - | 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). | - | 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). | - | 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). | - | 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 |
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). | - | X | - | - | |
Total number of examples_ll: 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. | - | - | 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. | - | 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. | - | 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. | - | 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). | - | X | - | - | |
SPI |
SPI_FullDuplex_ComPolling |
Data buffer transmission/reception between two boards via SPI using Polling mode. | - | X | - | - | |
SPI_HalfDuplex_ComPollingIT |
Data buffer transmission/reception between two boards via SPI using Polling (LL driver) and Interrupt modes (HAL driver). | - | X | - | - | ||
TIM |
TIM_6Steps |
Configuration of the TIM1 peripheral to generate six-step PWM signals. | - | X | - | - | |
TIM_PWMInput |
Use of the TIM peripheral to measure an external signal frequency and duty cycle. | - | 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. | - | 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. | - | X | - | - | ||
Total number of examples_mix: 11 | 0 | 10 | 1 | 0 | |||
Applications |
EEPROM |
EEPROM_Emulation |
Please refer to AN2594 for further details regarding this application. | - | 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. | - | - | X | X | |
FreeRTOS |
FreeRTOS_Mail |
How to use mail queues with CMSIS RTOS API. | - | - | X | - | |
FreeRTOS_Signal |
How to perform thread signaling using CMSIS RTOS API. | - | - | X | - | ||
FreeRTOS_SignalFromISR |
How to perform thread signaling from an interrupt using CMSIS RTOS API. | - | - | X | - | ||
FreeRTOS_ThreadCreation |
How to implement thread creation using CMSIS RTOS API. | - | 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. | - | - | 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). | - | - | 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. | - | - | - | X | |
LwIP_TCP_Echo_Server |
This application shows how to run TCP Echo Server application based on Raw API of LwIP TCP/IP stack. | - | - | - | 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. | - | - | - | X | ||
LwIP_UDP_Echo_Server |
This application shows how to run UDP Echo Server application based on Raw API of LwIP TCP/IP stack. | - | - | - | X | ||
STemWin |
STemWin_HelloWorld |
Simple "Hello World" example based on STemWin. | - | - | 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. | - | - | X | X | |
CustomHID_Standalone |
Use of the USB device application based on the Custom HID Class. | - | - | X | X | ||
DFU_Standalone |
Compliant implementation of the Device Firmware Upgrade (DFU) capability to program the embedded Flash memory through the USB peripheral. | - | - | X | X | ||
HID_Standalone |
Use of the USB device application based on the Human Interface (HID). | - | X | X | X | ||
MSC_Standalone |
Use of the USB device application based on the Mass Storage Class (MSC). | - | - | X | X | ||
USB_Host |
CDC_Standalone |
Use of the USB host application based on the CDC class. | - | - | - | X | |
HID_RTOS |
Use of the USB host application based on the HID class. | - | - | - | X | ||
HID_Standalone |
Use of the USB host application based on the HID class. | - | - | - | X | ||
MSC_RTOS |
This application shows how to use the USB host application based on the Mass Storage Class (MSC). | - | - | - | X | ||
MSC_Standalone |
Use of the USB host application based on the Mass Storage Class (MSC). | - | - | - | X | ||
Total number of applications: 35 | 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. | - | X | - | - |
Total number of demonstrations: 1 | 0 | 1 | 0 | 0 | |||
Total number of projects: 218 | 20 | 104 | 54 | 40 |