60.1. eMMC low-level API demo

60.1.1. Overview

The demo provides the following features: - Write the last sector and verify the data

  • Write the last 1024 sectors and verify the data

  • eMMC sleep & awake

This demo can work under polling or interrupt mode, and the default mode is polling mode. Please refer to the comments in CMakeLists.txt for switching to interrupt mode.

60.1.2. Board Setting

For the board which doesn’t have On-board eMMC devices, An eMMC to TF device is required For the board that has on-board eMMC devices, this test is based on on-board eMMC device

60.1.3. Running the example

When the example runs successfully, the board shows the following menu, please input 1 or 2 for testing.

-----------------------------------------------------------------------------------
*                                                                                 *
*                   eMMC Low-level test demo                                      *
*                                                                                 *
*        1. Write & Read the last block                                           *
*        2. Write & Read the last 1024 blocks                                     *
*        3. Demonstrate eMMC sleep & awake                                        *
*                                                                                 *
*---------------------------------------------------------------------------------*