Self-Programming Enable; Self-Programming Library Functions - NEC V850ES/F 3-L Series User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 7

7.3.1 Self-programming enable

Figure 7-14

7.3.2 Self-programming library functions

278
The self-programming functions can be started out of the normal user mode of
the microcontroller.
The microcontroller must be set into self-programming mode via the self-
programming library.
For security reasons writing and erasing of the flash memory must be
additionally permitted by setting the external FLMD0 pin to high level. Note that
FLMD0 holds low level in normal operation mode after reset release.
This requires some external components or wiring, e.g. connecting an output
port to FLMD0.
RESET signal
FLMD0 pin
Self-programming enable
When self-programming has been completed, the voltage on the FLMD0 pin
must be returned to VSS.
Code flash memory self-programming by the user's program is supported by
the self-programming library.
This library provides a set of C function calls to carry out basic functions like
• blank-check/erase/rewrite/verify of the flash
• boot cluster swapping, including definition of boot block clusters
• definition of the variable reset vector
• setting of protection flags
• obtain various information concerning the code flash memory
Detailed information how to use the library functions is given in the Application
Note: "Self-Programming Library for embedded Single Voltage FLASH"
(document no. U16929EE).
The up-to-date version of the self-programming library and the above
mentioned Application Note can be obtained from http://www.eu.necel.com.
User's Manual U18743EE1V2UM00
V
DD
0 V
Self-programming
V
DD
0 V
Normal
operation mode
Flash Memory
write/erase
permitted
Normal
operation mode

Advertisement

Table of Contents
loading

Table of Contents