Purpose
This example demonstrates how to use the Atmel SerialFlash AT25DFx component. The SerialFlash requires an SPI bus as a low level communication interface. This interface can be implemented using SPI or USART in SPI mode for SAM devices.
Requirements
This package can be used with SAM3N, SAM4L, SAM4E and SAM4C evaluation kits.
Description
This example will do the following operations.
- Send "Read Status" command to the SerialFlash.
- Read back the status of the SerialFlash.
- Write two sectors to the SerialFlash.
- Read back these sectors and check correct content.
- If all operations are correct, DATA_FLASH_LED_EXAMPLE_0 is 'on' and DATA_FLASH_LED_EXAMPLE_1 is 'on'(If have). The other states of LEDs mean that the SerialFlash access fails somewhere.
Usage
- Build the program and download it into the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or the IAR EWARM User Guide, depending on the solutions that users choose.
- Some texts, images and basic shapes should be displayed on the LCD.