SAM3S8/SD8 Software Package: SMC NOR Flash Example

SAM3S8/SD8 Software Package 1.2

# SMC NOR Flash Example

## Purpose

The smc_norflash project gives you CFI supported Norflash programming through the External Bus Interfac (EBI), so that can help develop your own norflash devices applications with maximum efficiency.

## Related

You can find following information depends on your needs:

- Configures the EBI for NorFlash access.
- Usage of auto detection of CFI supported Norflash device.
- API layer consists of several functions that allow user to do operations with Norflash in a unified way.
- Low-level driver implement procedures to program basic operations described in the datasheets for Norflash devices.
- Sample code for accessing Norflash device.

## Requirements

This package can be used with SAM3S-VB with external Norflash components.

## Description

At startup, the program configures the SMC to access the NorFlash and tries to identify it by CFI detectiion. If it succeed, it retrieves its parameter and starts testing its blocks. Each block is first erased, then all its pages are written and verified.

## Usage

1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User and reference guides, depending on your chosen solution.
2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
   - 115200 bauds
   - 8 bits of data
   - No parity
   - 1 stop bit
   - No flow control
3. Start the application.
4. In the terminal window, the following text should appear:

            -- SMC NorFlash Example xxx --
            -- xxxxxx-xx
            -- Compiled: xxx xx xxxx xx:xx:xx --
            -I- Common Flash Interface detecting...
            -I- CFI detected and driver initialized
            -I- manufactureID : 0xxxxx, deviceID : 0xxxxx
            -I- Test in progress on block: xxxx

5. Eventually, the test result (pass or fail) will be output on the terminal.

## References

- smc_norflash/main.c

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines