The example shows the usage of the SPI driver to perform the basic operation including reading data from, writing data to and erasing the memory of a SPI serial flash memory chip.

The application example creates only one task called main_task which is responsible for configuring the SPI protocol, erasing memory in memory board and reading data from and writing data to the memory board. The MCU is the master and the SPI serial flash memory is the slave in the SPI data transfer.