Microchip® Advanced Software Framework

Quick start guide for the

NAND Flash module

This is the quick start guide for the NAND Flash on EBI, with step-by-step instructions on how to configure and use the driver in a selection of use cases.

The use cases contain several code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.

NAND Flash use cases

  • Basic use case - Basic use case - Initialize the NAND Flash and perform read/write operation.

Basic use case -

Initialize the NAND Flash and perform read/write operation.

Setup

common_components_nand_flash_basic_use_case_setup_prereq

Prerequisites

  1. General Purpose I/O Management (gpio)

Code

The following function needs to be added to the user application, to initialize the NAND Flash.

printf("-E- Device Unknown\n\r");
return 0;
}

Workflow

  1. Erase a block first before write:
  2. Write the data buffer to the defined page of block:
  3. Read the data to the buffer from the defined page of block: