跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

If I program in the user area, will the boot program be erased?

Latest Updated:02/27/2012

Question:

When using the Flash memory version, which address will the start address be located at after the reset is released (when not in the program mode)? In addition, if I program in the user area, will the standard boot program be erased and will I never be able to reprogram? [M16C/Tiny]

[ About the M32C/80 Series, the M16C/80 Series, and the M16C/60 Series products, click here ]

Answer:

The Flash memory version has two areas, the user area and boot area. When the reset is released when CNVss="H", RP="L" and P1_6="H", or CNVss="H" and CE="H", the boot area is used. When the reset is released when CNVss="L", the user area is used. When the reset is released when CNVss="L", the start address will be located at the address stored in the reset vector of the user area, and the program will be executed from there. In addition, the user area and boot area are completely separated so the standard boot program will  never be erased, even if you program in the user area.
Suitable Products
M16C/29
M16C/28
M16C/26A