STM32CubeF3 Firmware Examples for STM32F3xx Series

The STM32CubeF3 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_STM32CubeF3_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 STM32CubeF3 Firmware package.

Reference materials available on www.st.com/stm32cubefw

Level Module Name Project Name Description STM32F303RE-Nucleo STM32F303K8-Nucleo STM32F3348-Discovery STM32303E_EVAL STM32373C_EVAL STM32303C_EVAL STM32F3-Discovery STM32F302R8-Nucleo STM32F334R8-Nucleo STM32F303ZE-Nucleo

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

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

Examples

-

BSP

This example provides a description of how to use the different BSP drivers. - - - X X 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 - - - - - - X - X

ADC_Conv_Differential

How to use an ADC peripheral to perform a conversion in differential mode between 2 ADC channels. - - - - - X - - - -

ADC_DMA_Transfer

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 - - - - - - - -

ADC_DifferentialMode

How to use an ADC peripheral to perform a conversion in differential mode between 2 ADC channels. - - - X - X - - - -

ADC_DualModeInterleaved

How to use two ADC peripherals to perform conversions in dual interleaved mode. - - - - - X - - - -

ADC_DualMode_18Msps

How to use two ADC peripherals to convert a regular channel in Dual interleaved mode. - - - X - X - - - -

ADC_RegularConversion_Polling

How to use the ADC in Polling mode to convert data through the HAL API. - - - - X X - - - -

ADC_Sequencer

How to use the ADC peripheral with a sequencer to convert several channels. X - - - - - - X - X

ADC_TriggerMode

How to use ADC and TIM2 to continuously convert data from an ADC channel. - - - X X X - - - -

CAN

CAN_Networking

How to configure the CAN peripheral to send and receive CAN frames in normal mode. - - - - X X - - - -

CEC

CEC_DataExchange

How to configure and use the CEC peripheral to receive and transmit messages. - - - - X - - - - -

CEC_ListenMode

How to configure and use the CEC peripheral to receive and transmit messages between two boards, while a third board (the spy device) listens but doesn't acknowledge the received messages. - - - - X - - - - -

CEC_MultiAddress

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 - - - - -

COMP

COMP_AnalogWatchdog

How to use a pair of comparator peripherals to compare a voltage level applied on a GPIO pin to two thresholds: the internal voltage reference (VREFINT) and a fraction of the internal voltage reference (VREFINT/4), in interrupt mode. - - - - - X - - - -

COMP_Hygrometer

How to make a hygrometer using the capacitive humidity sensor. The capacitance measurement is performed by continuously charging/discharging the humidity sensor and measuring the associated time constant. - - - X - X - - - -

COMP_OutputBlanking

How to use the comparator-peripheral output blanking feature. The purpose of the output blanking feature in motor control is to prevent tripping of the current regulation upon short current spikes at the beginning of the PWM period. - - - X - X - - - -

CRC

CRC_Bytes_Stream_7bit_CRC

How to configure the CRC using the HAL API. The CRC (cyclic redundancy check) calculation unit computes 7-bit CRC codes derived from buffers of 8-bit data (bytes). The user-defined generating polynomial is manually set to 0x65, that is, X^7 + X^6 + X^5 + X^2 + 1, as used in the Train Communication Network, IEC 60870-5[17]. - X - - - X - - X -

CRC_Data_Reversing_16bit_CRC

How to configure the CRC using the HAL API. The CRC (cyclic redundancy check) calculation unit computes a 16-bit CRC code derived from a buffer of 8-bit data (bytes). Input and output data reversal features are enabled. The user-defined generating polynomial is manually set to 0x1021, that is, X^16 + X^12 + X^5 + 1 which is the CRC-CCITT generating polynomial. - X - - - - - - X -

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

CRC_UserDefinedPolynomial

How to configure the CRC using the HAL API. The CRC (cyclic redundancy check) calculation unit computes the 8-bit CRC code for a given buffer of 32-bit data words, based on a user-defined generating polynomial. - - - - - 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 X X - - 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 X X - - -

CORTEXM_SysTick

How to use the default SysTick configuration with a 1 ms timebase to toggle LEDs The system clock is set to 72 MHz for STM32F3xx devices, the SysTick is clocked by the AHB clock(HCLK). - - X - X X X - - X

DAC

DAC_SignalsGeneration

How to use the DAC peripheral to generate several signals using the DMA controller. X - - X - X - - - -

DAC_SimpleConversion

How to use the DAC peripheral to do a simple conversion. X - - X - 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 X - X X X - X - X

FLASH

FLASH_EraseProgram

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

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 - -

GPIO

GPIO_EXTI

How to configure external interrupt lines. X - X X X X X X - X

GPIO_IOToggle

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

How to customize HAL using RTC alarm as main source of time base, instead of Systick. - - X X X X X X - -

HAL_TimeBase_RTC_WKUP

How to customize HAL using RTC wakeup as main source of time base, instead of Systick. - - X X 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 X X - -

HRTIM

HRTIM_BasicPWM

This example describes how to generate basic PWM waveforms with the HRTIM, using HRTIM Cookbook basic examples. - - X - - - - - - -

HRTIM_BuckBoost

This example shows how to configure the HRTIM to control a non-inverting buck-boost converter timer. - - X - - - - - - -

HRTIM_BuckBoost_AN4449

This example is related to AN4449 Buck-boost converter. - - X - - - - - - -

HRTIM_BuckSyncRect

This example shows how to configure the HRTIM to control a buck converter with synchronous rectification. - - X - - - - - - -

HRTIM_DualBuck

This example shows how to configure the HRTIM to have 2 buck converters controlled by a single timer unit. - - X - - - - - - -

HRTIM_LLC_HalfBridge

This example shows how to configure the HRTIM to control a half-bridge LLC converter with synchronous rectification, using timer units A and B and TA1/TA2/TB1/TB2 outputs. - - X - - - - - - -

HRTIM_Multiphase

This example shows how to configure the HRTIM to control a multiphase buck converter. It handles here 5-phases on timer unit A, B C and D and outputs TA2, TB1, TC2, TD1, TD2. - - X - - - - - - -

HRTIM_Snippets

This example describes how to generate basic PWM waveforms with the HRTIM, using HRTIM Cookbook basic examples. - - X - - - - - - -

HRTIM_TM_PFC

This example shows how to configure the HRTIM to control a transition mode PFC. - - X - - - - - - -

I2C

I2C_EEPROM

How to handle I2C data buffer transmission/reception with DMA. In the example, the device communicates with an I2C EEPROM memory. - - - X X X - - - -

I2C_TwoBoards_AdvComIT

How to handle I2C data buffer transmission/reception between two boards, using an interrupt. X X - X - X X X - X

I2C_TwoBoards_ComDMA

How to handle I2C data buffer transmission/reception between two boards, via DMA. X X - X - X X X - X

I2C_TwoBoards_ComIT

How to handle I2C data buffer transmission/reception between two boards, using an interrupt. X X - X - X X X - X

I2C_TwoBoards_ComPolling

How to handle I2C data buffer transmission/reception between two boards, in polling mode. X X - X - X X 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 - -

I2C_WakeUpFromStop

How to handle I2C data buffer transmission/reception between two boards, using an interrupt when the device is in Stop mode. X X - X - X X X - X

I2S

I2S_Audio

Basic implementation of audio features. This example allows playing an audio file with an external codec on the STM32373C-EVAL board through the I2S peripheral using DMA transfer. - - - X X X - - - -

IWDG

IWDG_Reset

How to handle the IWDG reload counter and simulate a software fault that generates an MCU IWDG reset after a preset laps of time. - - - - X X X - - -

IWDG_WindowMode

How to periodically update the IWDG reload counter and simulate a software fault that generates an MCU IWDG reset after a preset laps of time. - - - - X X X - - -

OPAMP

OPAMP_CALIBRATION

How to calibrate the OPAMP peripheral. - - - - - X - - - -

OPAMP_PGA

How to use the built-in PGA mode (OPAMP programmable gain). - - - - - X - - - -

PWR

PWR_CurrentConsumption

How to configure the system to measure the current consumption in different low-power modes. X - X X X X X X X -

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 X X X X X X 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 - - X

PWR_STOP

How to enter the Stop mode and wake up from this mode by using the RTC wakeup timer event or an interrupt. - - - - - - X - - 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 X X X - X

RCC_LSIConfig

Enabling/disabling of the low-speed internal (LSI) RC oscillator (about 32 KHz) at run time, using the RCC HAL API. X - - - - - - X - -

RTC

RTC_Calendar

Configuration of the calendar using the RTC HAL API. X X - - X X X - - X

RTC_Tamper

Configuration of the RTC HAL API to write/read data to/from RTC Backup registers. - X - - X X - - - X

SDADC

SDADC_PressureMeasurement

This example aims to show how to use the 16-bit resolution Sigma-Delta Analog-to-Digital converter to perform differential pressure measurement. - - - - X - - - - -

SDADC_TempMeasurement

This example aims to show how to use the 16-bit resolution Sigma-Delta Analog-to-Digital converter to perform accurate temperature measurement. - - - - X - - - - -

SDADC_Voltmeter

This example aims to show how to use the 16-bit resolution Sigma-Delta Analog-to-Digital converter to perform precise voltage measurement when input voltage range is between 0V and VREF/gain. - - - - X - - - - -

SMBUS

SMBUS_TSENSOR

SMBUS data buffer transmission/reception using an interrupt. The STM32 microcontroller communicates with an SMBUS temperature sensor. - - - X - X - - - -

SPI

SPI_FullDuplex_AdvComIT

Configuration of the HAL SPI API to transmit/receive a data buffer using Interrupt mode in an advanced communication mode: The master board always sends the command to the slave before performing any transmission; the slave board sends back an acknowledgement before proceeding. - - - - - - - X - -

SPI_FullDuplex_AdvComPolling

Configuration of the HAL SPI API to transmit/receive a data buffer using Polling mode in an advanced communication mode: The master board always sends the command to the slave before performing any transmission; the slave board sends back an acknowledgement before proceeding. - - - - - - - - - X

SPI_FullDuplex_ComDMA

Data buffer transmission/reception between two boards via SPI using DMA. X X - X - - X X - X

SPI_FullDuplex_ComIT

Data buffer transmission/reception between two boards via SPI using Interrupt mode. X X - X - - X X - X

SPI_FullDuplex_ComPolling

Data buffer transmission/reception between two boards via SPI using Polling mode. X X - X - - X X - X

SPI_HalfDuplex_ComPolling

Data buffer half-duplex transmission/reception between two boards via SPI using Polling mode. - - - - - - - - - X

TIM

TIM_Asymetric

Configuration of the TIM peripheral to generate an asymmetric signal. - - - X - X X - - -

TIM_Combined

Configuration of the TIM1 peripheral to generate three PWM combined signals with TIM1 Channel 5. - - - X - X X - - -

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 X X X - - -

TIM_DMA

Use of the DMA with TIMER Update request to transfer data from memory to TIMER Capture Compare Register 3 (TIMx_CCR3). X X - X X X X X - X

TIM_InputCapture

Use of the TIM peripheral to measure an external signal frequency. - X - X X X X - - X

TIM_OCActive

Configuration of the TIM peripheral in Output Compare Active mode (when the counter matches the capture/compare register, the corresponding output pin is set to its active state). - - - - - - - - - X

TIM_OCToggle

Configuration of the TIM peripheral to generate four different signals at four different frequencies. - - - - - - - - - X

TIM_OnePulse

Use of the TIM peripheral to generate a single pulse when an external signal rising edge is received on the timer input pin. - - - - - - - - - X

TIM_PWMInput

Use of the TIM peripheral to measure the frequency and The TIM3CLK frequency is set to SystemCoreClock (Hz), the Prescaler is 0 so the counter clock is SystemCoreClock (Hz). X - - X X X X X - X

TIM_PWMOutput

Configuration of the TIM peripheral in PWM (pulse width modulation) mode. X X - X X X X X - X

TIM_TimeBase

Configuration of the TIM peripheral to generate a timebase of one second with the corresponding interrupt request. X X - X X X X X - X

TSC

TSC_BasicAcquisition_Interrupt

Use of he TSC to perform continuous acquisitions of two channels in Interrupt mode. - - - X X X - - - -

TSC_BasicAcquisition_Polling

Use of the TSC to perform continuous acquisitions of one channel in Polling mode. - - - 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 X - - - -

UART_Printf

Re-routing of the C library printf function to the UART. - - - - - - - - - X

UART_TwoBoards_ComDMA

UART transmission (transmit/receive) in DMA mode between two boards. - X X - - - X X - X

UART_TwoBoards_ComIT

UART transmission (transmit/receive) in Interrupt mode between two boards. - X X - - - X X - X

UART_TwoBoards_ComPolling

UART transmission (transmit/receive) in Polling mode between two boards. - X X - - - X X - X

UART_WakeUpFromStop

Configuration of 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

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 X - X X X X - - X
Total number of examples: 337 26 30 24 43 42 57 40 33 4 38

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_ContinuousConversion_TriggerSW_LowPower

How to use an ADC peripheral with ADC low-power features. - - - - - - - - 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 -

COMP

COMP_CompareGpioVsVrefInt_IT

How to use a comparator peripheral to compare a voltage level applied on a GPIO pin to the internal voltage reference (VREFINT), in interrupt mode. This example is based on the STM32F3xx COMP LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). - - - - - - - - X -

COMP_CompareGpioVsVrefInt_IT_Init

How to use a comparator peripheral to compare a voltage level applied on a GPIO pin to the the internal voltage reference (VREFINT), in interrupt mode. This example is based on the STM32F3xx COMP LL API. The peripheral initialization uses the LL initialization function to demonstrate LL init usage. - - - - - - - - X -

COMP_CompareGpioVsVrefInt_OutputGpio

How to use a comparator peripheral to compare a voltage level applied on a GPIO pin to the internal voltage reference (VREFINT). The comparator output is connected to a GPIO. This example is based on the STM32F3xx COMP LL API. - - - - - - - - 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 -

CRC_UserDefinedPolynomial

How to configure and use the CRC calculation unit to compute an 8-bit CRC code for a given data buffer, based on a user-defined generating polynomial. 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx DAC LL API. The peripheral initialization uses LL initialization functions to demonstrate LL init usage. - - - - - - - - X -

DMA

DMA_CopyFromFlashToMemory

How to use a DMA channel to transfer a word data buffer from Flash memory to embedded SRAM. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). - - - - - - - - X -

DMA_CopyFromFlashToMemory_Init

How to use a DMA channel to transfer a word data buffer from Flash memory to embedded SRAM. The peripheral initialization uses LL initialization functions 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx LL API. The peripheral is initialized with LL initialization function to demonstrate LL init usage. - - - - - - - - X -

HRTIM

HRTIM_BuckBoost

This example shows how to configure the HRTIM to control a non-inverting buck-boost converter timer. - - 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 -

I2C_TwoBoards_WakeUpFromStop_IT

How to handle the reception of a data byte from an I2C slave device in Stop mode by an I2C master device, both using interrupt 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 -

OPAMP

OPAMP_PGA

How to use the OPAMP peripheral in PGA mode (programmable gain amplifier). To test OPAMP, a voltage waveform is generated by the DAC and feeds the OPAMP input. This example is based on the STM32F3xx OPAMP LL API. The peripheral is initialized with LL unitary service functions to optimize for performance and size. - - - - - - - - X -

OPAMP_PGA_Init

How to use the OPAMP peripheral in PGA mode (programmable gain amplifier). To test OPAMP, a voltage waveform is generated by the DAC and feeds the OPAMP input. This example is based on the STM32F3xx OPAMP LL API. The peripheral is initialized with LL initialization function to demonstrate LL init usage. - - - - - - - - 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_LPREGU mode. - - - - - - - - X -

RCC

RCC_OutputSystemClockOnMCO

Configuration of 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_ExitStandbyWithWakeUpTimer

Configuration of the RTC to wake up from Standby mode using the RTC Wakeup timer. 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 -

RTC_TimeStamp

Configuration of the Timestamp using the RTC LL API. The peripheral initialization uses LL unitary service functions for optimization purposes (performance and size). - - - - - - - - X -

SPI

SPI_TwoBoards_FullDuplex_DMA

Data buffer transmission and reception via SPI using DMA mode. This example is based on the STM32F3xx 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 reception via SPI using Interrupt mode. This example is based on the STM32F3xx 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 deadtime value, use the break feature, and lock the break and dead-time configuration. - - - - - - - - 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 STM32F3xx 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 -

USART_WakeUpFromStop

Configuration of GPIO and USART peripherals to allow the characters received on USART RX pin to wake up the MCU from low-power mode. - - - - - - - - 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: 74 0 0 1 0 0 0 0 5 67 1

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 STM32F3xx ADC HAL and LL API. The LL API is used for performance improvement. - - - - - - - - X -

CRC

CRC_PolynomialUpdate

How to use the CRC peripheral through the STM32F3xx CRC HAL and LL API. - - - - - - - - X -

DMA

DMA_FLASHToRAM

How to use a DMA to transfer a word data buffer from Flash memory to embedded SRAM through the STM32F3xx 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 two slaves with different address sizes (7-bit or 10-bit). This example uses the STM32F3xx I2C HAL and LL API (LL API usage for performance improvement) and an interrupt. - - - - - - - X - -

OPAMP

OPAMP_CALIBRATION

How to calibrate and operate the OPAMP peripheral. This example is based on the STM32F3xx OPAMP HAL and LL API (the latter to maximize performance). - - - - - - - - X -

PWR

PWR_STANDBY_RTC

How to enter the Standby mode and wake up from this mode by using an external reset or the RTC wakeup timer through the STM32F3xx RTC and RCC HAL, and LL API (LL API use for maximizing performance). - - - - - - - - X -

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 -

TIM

TIM_6Steps

Configuration of the TIM1 peripheral to generate six-step PWM signals. - - - - - - - - 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 STM32F3xx 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 STM32F3xx UART HAL and LL API, the LL API being used for performance improvement. - - - - - - - - X -
Total number of examples_mix: 10 0 0 0 0 0 0 0 1 9 0

Applications

EEPROM

EEPROM_Emulation

This application shows how to emulate EEPROM on internal flash. - - - X 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 using the most of FatFs features to configure a microSD drive. X - - X X X - - - X

FreeRTOS

FreeRTOS_LowPower

How to enter and exit low-power mode with CMSIS RTOS API. - - - - X X - - - -

FreeRTOS_Mail

How to use mail queues with CMSIS RTOS API. - - - X X - - - - -

FreeRTOS_Mutexes

How to use mutexes with CMSIS RTOS API. - - - X X X - - - -

FreeRTOS_Queues

How to use message queues with CMSIS RTOS API. X - - X X X - - - -

FreeRTOS_Semaphore

How to use semaphores with CMSIS RTOS API. X - - X X X - - - -

FreeRTOS_SemaphoreFromISR

How to use semaphore from ISR with CMSIS RTOS API. X - - X X X - - - -

FreeRTOS_Signal

How to perform thread signaling using CMSIS RTOS API. - - - X X - - - - -

FreeRTOS_SignalFromISR

How to perform thread signaling from an interrupt using CMSIS RTOS API. - - - X X - - - - -

FreeRTOS_ThreadCreation

How to implement thread creation using CMSIS RTOS API. X X X X X X X X X -

FreeRTOS_Timers

How to use timers of CMSIS RTOS API. X - - 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) through 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 - - - - -

STemWin

STemWin_HelloWorld

Simple "Hello World" example based on STemWin. - - - X X 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_2touchkeys_IT

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

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 X X X X - -

HID_Standalone

Use of the USB device application based on the Human Interface (HID). X - - X X X X X - X

MSC_Standalone

Use of the USB device application based on the Mass Storage Class (MSC). - - - X X X - - - X
Total number of applications: 77 8 1 1 19 22 16 3 3 1 3

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 - - - - - - X X X

Demo

Demonstration firmware based on STM32Cube. This example helps you to discover STM32 Cortex-M devices that are plugged onto your STM32 Discovery board. - - X - - - X - - -

Gravitech_4Digits_Counter

How to use the Gravitech 7 segment 4 digits shield with a Nucleo 32 Board. - X - - - - - - - -
Total number of demonstrations: 7 1 1 1 0 0 0 1 1 1 1
Total number of projects: 525 37 34 29 64 66 75 46 45 84 45