AVR32 - FlashVault Basic Example Documentation

Introduction

This is the documentation for the Secure State basic example of usage.

The Secure State allows execution of secure or secret code alongside 3rd-party code on the same processor. The secret code will execute in the secure state, and therefore be protected from hacking or readout by the 3rd-party code.

Recommended reading: the Secure State chapter in the AVR32 UC Technical Reference manual.

Basic Example description

A 3rd-party application accesses public API functions exposed by the FlashVault.
This 3rd-party application also configures and handles the COUNT/COMPARE match interrupt.
The purpose of this example is to show that no matter when this interrupt occurs (whether while executing code in the FlashVault or in the 3rd-party application) it will safely be handled by the interrupt handler of the 3rd-party code. This is happening because the FlashVault implementation temporarily switches back to the 3rd-party code if an interrupt occurs while the execution is in the FlashVault.

Visual behavior:

Main Files

Compilation Info

This software was written for the GCC for AVR32. Other compilers may or may not work.

Configuration Information

This example has been tested with the following configuration:

Loading The Code

This is a step-by-step description of the steps to follow to load the code and enable the FlashVault:

Contact Information

For further information, visit Atmel AVR32.
Support and FAQ: http://support.atmel.no/

Generated on Fri Feb 19 02:24:29 2010 for AVR32 - FlashVault Basic Example by  doxygen 1.5.5