Version: 1.0

AT91 SAM7S Basic

The goal of this demonstration project is to demonstrate how to use the AT91 ARM-Based Software Package. This project runs a test of the AT91SAM7Sxx device and his corresponding Evaluation Kit, the AT91SAM7S-EK. This project is a basic project example which includes all the resource files and the Cstartup file. It can be used to generate a new SAM7S64 project.
This project also demonstrate the Flash routine to debug and manage the Flash.

Reference Documents

Name

Reference

ARM-Based Software Package

6016

AT91SAM7Sxx Datasheet

Contents:

Software tools

Source Files

Source Files:

 

Description Files

srcxxx/SAM7Board.h

SAM7 evaluation board description

 

Startup Files

srcxxx/Cstartup.xxx

AT91SAM7Sxx microcontroller reset entry point

srcxxx/Cstartup_SAM7.c

AT91SAM7Sxx initialization called by the assembly code in the Cstartup

 

C Files

../src/main.c

Main entry point

../src/debug.c

Debug menu and functions

../src/Flash.c

Flash routine

../src/Flash.h

Flash size information


Debug Menu:


Start 0x100000 size 0x80 (128)

1) Flash Display the flash information
2) dump Flash Dump all flash memory
3) write Write 128 bytes flash at page
4) write Write flash at start address and size
6) set NVM Set NVM (Non Volatile memory) bit at 1 (FSR)
7) ClearNVM Clear NVM bit at 0 (FSR)
8) Set Lock Lock bit sector (value "page")
9) Clear lock UnLock bit sector (value "page")

A) Unlock All Flash

B) Lock All Flash