Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NVM example for sam4s16c on SAM-4S EK Documentation

Introduction

This example demonstrates how to use the basic Non volatile memories access functions

Main files

drivers/basic/nvm API

The NVM API can be found here.

Device Info

All AVR and SAM devices with internal Flash can be used.

Description of the example

  • Write data to the internal flash and/or external dataflash AT45DBX
  • Read back the data and compare with the original data

NVM_EXAMPLE_LED0 gives the result for internal flash:
NVM_EXAMPLE_LED0 OFF: Test failed NVM_EXAMPLE_LED0 ON : Test passed

On boards with external dataflash, NVM_EXAMPLE_LED1 gives the result for external dataflash AT45DBX:
NVM_EXAMPLE_LED1 OFF: Test failed NVM_EXAMPLE_LED1 ON : Test passed

NVM_EXAMPLE_LED2 ON: Indicates that all tests are complete

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.