Purpose
This file contains all the specific code for the basic-internal-project. It tests the embedded flash present on the evaluation kit by unlock and writing last page of internal flash.
Contents
The code
can be roughly broken down as follows:
- The main() function, which implements the program behavior.
- Initializes an FLash driver.
- Unlock the whole page of the flash.
- It writes a pattern in the last page of the flash, and checks it back.
- It locks the last region of the flash, and verifies that the status is updated accordingly.
- It unlocks the last region and verifies that it the status is updated accordingly
- Lastly, GPNVM 1 is cleared and set, the status being checked for update between the operations (the original state of the GPNVM is restored after this step)
See also
- flash: FLASHD interface driver.
- efc: EFC peripheral interface.
- eefc: EEFC peripheral interface.
Please refer to the list of functions in the
Overview tab of this unit for more detailed information.