Written by AT91SAM webmaster
Hits (633) || Votes (1) || Comments (0)
Created Monday, 16 August 2010
Last updated Monday, 16 August 2010
| Title | SAM3U Basic Internalflash project | |
| Description |
Purpose:
This basic demonstrates the features of the Embedded Flash Controller (EFC/EEFC) present on Atmel AT91 microcontrollers. The EFC enables in-application programming of the internal flash, as well as protecting memory regions or the whole chip. You can find following information depends on your needs: - FLASHD driver provides the unified interface of functions and operations for all supported Embedded Flash Memory Devices. - EFC(EEFC) peripheral interface for configuration the EFC(EEFC) peripheral - Example code for internal Flash operations. Requirements: This package can be used with all Atmel evaluation kits that have EFC(EEFC) interface, the package could runs at SRAM or internal flash. Description: The program performs the following set of commands: First, it unlocks the whole flash It writes a pattern in the last page of the flash, and checks it back It locks the last region of the flash, and verifies that the status is updated accordingly It unlocks the last region and verifies that it the status is updated accordingly Lastly, GPNVM 1 is cleared and set, the status being checked for update between the operations (the original state of the GPNVM is restored after this step) 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 Guide, 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.The application will display the various tests it is executing and the results (example shown for the SAM9XE256): -- Basic Internal Flash Project xxx -- -- AT91xxxxxx-xx -- Compiled: xxx xx xxxx xx:xx:xx -- -I- Unlocking the whole flash -D- Actual lock range is 0x200000 - 0x240000 -I- Writing last page with walking bit pattern -I- Checking page contents .......................................... ................................................................. ok -I- Locking last page -D- Actual lock range is 0x23C000 - 0x240000 -I- Checking lock status ... ok -I- Unlocking last page -D- Actual lock range is 0x23C000 - 0x240000 -I- Checking lock status ... ok -I- GPNVM #1 is cleared -I- Setting GPNVM #1 -I- Clearing GPNVM #1 -I- All tests ok 5.As soon as a dataflash is connected, the tests will start. Eventually, the test result (pass or fail) will be output on the DBGU. | |
| Type of project | Software | |
| Development tools | IAR EWARM | |
| Product series | ||
| AT91SAM kits | ||
| More details |
| |
| File | 1281965156_basic-internalflash-project-at91sam3u-ek-iar.zip (Size: 150 Kb | Hits: 20) |
Comments
There are no comments for this item
Be the first to leave a comment
Login to leave a comment



