Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Drivers NVM Example 2 for XMEGA A3BU Xplained Documentation

Introduction

This example shows how to use and tests the NVM EEPROM handling of the NVM driver.

Main Files

  • example2_xmega.c example application
  • conf_example.h example configuration

Device Info

All AVR XMEGA devices can be used. This example have been tested with the following setup:

  • XMEGA A3BU Xplained

Description of the example

For the A3BU Xplained, the tests are printed on the display, where successful tests are marked with OK below the test number, and failed test are marked with ERR.

  • Test 1: Erasing of all pages works as expected
  • Test 2: Write functions work as expected
  • Test 3: Atomic erase and write works as expected
  • Test 4: Write without an erase works as expected
  • Test 5: Erase of a few bytes in a page works as expected

Dependencies

This example depends on the following modules:

Compilation info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.