메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

What value to put to verify ID code to program the on-chip Flash memory?

Latest Updated:02/14/2006

Question:

When I program the on-chip Flash memory using the M16C Flash Starter, I got a [Not match ID] error and unable to program the memory. What value should I input to verify the ID code?

Answer:

When you program the on-chip Flash memory for the first time, you can use any values for the ID code. The ID matching will succeed. (When using the M16C Flash Starter, you always need to enter an ID code.)
If you have programmed the on-chip Flash memory already, a value written in the following addresses (including FFh, 00h) becomes the ID code.
When the ID code is unknown, please check the following addresses of your program written in the on-chip Flash memory. Usually MOT suffix file of Motorola S format file or HEX suffix file of Intel HEX format.

Addresses to be checked in M16C/10, M16C/20, M16C/Tiny, M16C/60 Series

  • FFFDFh
  • FFFE3h
  • FFFEBh
  • FFFEFh
  • FFFF3h
  • FFFF7h
  • FFFFBh

Addresses to be checked in M16C/80, M32C/80 Series

  • FFFFDFh
  • FFFFE3h
  • FFFFEBh
  • FFFFEFh
  • FFFFF3h
  • FFFFF7h
  • FFFFFBh

Addresses to be checked in R8C Family

  • FFDFh
  • FFE3h
  • FFEBh
  • FFEFh
  • FFF3h
  • FFF7h
  • FFFBh

Addresses to be checked in 38000/740 Series

  • FFD4h
  • FFD5h
  • FFD6h
  • FFD7h
  • FFD8h
  • FFD9h
  • FFDAh

In M16C Family, if nothing exists in these addresses in the program, "00h" or "FFh" becomes the ID code. The cases where no data exists are the following two. In 38000/740 series, as with Case 1 below, "FFh" becomes the ID code. (ID code is not in the vector table area but in the data area in 38000/740 Series.)

Case 1: No vector table is made
In this case, no data is set in MOT or HEX file because the ID code is saved in the highest order address in the vector table. However, Flash memory programmers often have a default value in free space. If so, the default value becomes the ID code. When using the M16C Flash Starter, the default value is "FFh" and the ID code thus is "FFh". 
Case 2: When no value is set in the above addresses
In this case, the addresses and data are set by .lword. Since the ID code is saved in the highest order address in the vector table, ID code is "00h". 

Additionally, you can set an ID code with the compiler (lmc30) using -ID option. However, 38000/740 Series does not support Imc30.

1. When specifying -ID option only:
ID code is "FFh".
2. When not using -ID option:
Values written in the above ID code store addresses become an ID code.

For details, please refer to the section "Method for Operating lmc30" in the AS30 User's Manual.

Suitable Products
R8C/18
R8C/19
R8C/1A
R8C/1B
R8C/10
R8C/11
R8C/12
R8C/13
R8C/14
R8C/15
R8C/16
R8C/17
R8C/20
R8C/21
R8C/22
R8C/23
R8C/24
R8C/25
R8C/26
R8C/27
R8C/28
R8C/29
R8C/2A
R8C/2B
R8C/2C
R8C/2D
R8C/32C
R8C/33C
R8C/34C
R8C/35C
R8C/36C
R8C/38C
R8C/3GC
R8C/3JC
R8C/32D
R8C/33D
R8C/35D
R8C/3GD
R8C/33T
R8C/34E, R8C/34F, R8C/34G, R8C/34H
R8C/36E, R8C/36F, R8C/36G, R8C/36H
R8C/38E, R8C/38F, R8C/38G, R8C/38H
R8C/L35C
R8C/L36C
R8C/L38C
R8C/L3AC
3803H
3803L
3850A
38D2
38D5
M32C/87
M32C/86
M32C/85
M32C/84
M32C/83
M16C/80
M16C/62A
M16C/62M
M16C/62N
M16C/62P
M16C/6N4, M16C/6N5
M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN
M16C/30P
M16C/29
M16C/28
M16C/26A
M16C/26
M16C/1N
M16C/6S
EV5-ASIA (R0K3306S0D011BR)
EV5-US (R0K3306S0D010BR)
SDK-PLC-EU-A (or -B for CENELEC B band)
M3A-0806
  • 이 기사가 도움이 되셨나요?