Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Drivers NVM Example 3 for Xplain Documentation

Introduction

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

Main Files

Device Info

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

  • Xplain * - XMEGA A1 Xplained
  • XMEGA-A3BU Xplained

Description of the example

The example tests the flash and reports back the status on the Xplain/A1 Xplained LEDs:

  • LED0: Atomic erase and write of application table section works as expected
  • LED1: Write without erase of application table section works as expected
  • LED2: Atomic erase and write of boot section works as expected
  • LED3: Write without erase of boot section works as expected
  • LED7: Test completed

In the case of the A3BU Xplained:

  • LED0: Atomic erase and write of application table section works as expected
  • LED1: Write without erase of application table section works as expected
  • LED2 (Red): Atomic erase and write of boot section works as expected
  • LED3 (Green): Write without erase of boot section works as expected
  • LCD Backlight: Test completed (Successful tests on LED2 and LED3 will appear as an orange color)

If one of the LEDs does not light up, this indicates a failure on the test.

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.