Project Name: Flash communication 

1. Description
This example demonstrates the basic communication between SPI2 and W25Q128FV flash chip.

2. Processor
ADSP-SC584

3. Overview

This example demonstrates the usage of the W25Q128FV flash chip.

1.Pageprogram: Enabled by defining "pageprogram" macro in spiflash_Core1.h.
  page_address: provided in "page_address" macro in spiflash_Core1.h 
  Here writing a page with 256 bytes and read it back. Note that the Page Program instruction allows from one byte to 256 bytes (a page) of data to be programmed at
  previously erased (FFh) memory locations.
  
2.sectorprogram: Enabled by defining "sectorprogram" macro in spiflash_Core1.h.
  sector_address: provided in "sector_address" macro in spiflash_Core1.h.
  Sector contains 16 pages of each 256 bytes.
  Here writing a sector with 4096 bytes and read it back. Note that only 256 bytes are to be programmed at a time. 

3.Erasing process: Enabled by defining "sector_erase_func" macro in spiflash_Core1.h.
  sector_address: provided in "sector_address" macro in spiflash_Core1.h.

4.Locking and unlocking process: Enabled by defining "Locking_and_unlocking_sector" macro in spiflash_Core1.h.
  sector_address: provided in "sector_address" macro in spiflash_Core1.h.

By default, Pageprogram macro is enabled .

4. Hardware Setup
None

5.External connections
None


6. Software switch settings
See SoftConfig_SC584.c for more information.

7. References
ADSP-SC584 Hardware Reference Manual
ADSP-SC584 EZ-Board Schematic
Winbond W25Q128FV flash datasheet
