Beginning of this page
Jump to main content

Please note that JavaScript and style sheet are used in this website,
Due to unadaptability of the style sheet with the browser used in your computer, pages may not look as original.
Even in such a case, however, the contents can be used safely.


Self-programming Function


Self-programming, through which the flash memory itself can be programmed through the program in the internal flash memory of the flash microcontroller, is supported.
Sets that use the self-programming function allow parameters and programs to be updated without using a flash memory programmer.
The self-programming function is easy to use with NEC Electronics's library functions and sample programs Note.
Moreover, a boot swap function is provided in order to prevent the boot area from being destroyed if a momentary power failure occurs during self-programming.


Note


If the bootstrap function is not supported

no_bootswap

  1. To self-program the boot area, save the program to RAM beforehand.
  2. If a momentary power failure occurs during programming of the boot area, the program in the RAM will be deleted and the boot area will also be destroyed.
  3. Since the boot area is destroyed, following power recovery, the microcontroller will not execute the program normally.

If the boot swap function is supported

When the boot swap function is used, even if a momentary power failure occurs during self-programming, a non-corrupted boot program will still exist, so the entire flash memory area can be programmed.


Example of flash memory rewriting using boot swap function

boot