Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This application note explains how to use the STM32H7 SPI Master mode in the FreeRTOS demo application.

1. Understanding SPI Master Mode Interfaces

1.1. FreeRTOS SPI Master Mode Implementation

The FreeRTOS BSP provides a device driver for the SPI Master mode operation. The driver is configured (enabled / disabled) at the BSP build time, using the HAL_SPI_MODULE_ENABLED configuration option, defined in the stm32h7xx_hal_conf.h file.

1.2. FreeRTOS SPI Master Mode C-Binding API

The SPI Master Mode driver implements the following C-binding API:

...

Command

Description

Comments

spi_flash_test <bus>

Read the SPI flash device ID

bus is the SPI bus number SPI Flash resides on

3. Validating SPI Master Operation

Use the following step-wise procedure to validate the SPI Master mode operation:

...