Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

Why did I get warning messages when I try to build project in RL78, 78K0R?

Latest Updated:11/25/2014

Question:

I am using the CA78K0R compiler for RL78 and 78K0R products and get one of the following warning messages when I try to build a project. How do I eliminate this error?
W0071: ROM data are treated as far data
W0072: Please check standard library function

Answer:

Check that the boot-flash relink function or the function of allocating ROM data specification (-rf) is used.
Items to be checked are described below. Ignore the messages if they do not present a problem.

  • For "W0071: ROM data are treated as far data"
    Even if the small or medium model has been specified as the memory model, the boot-flash relink function is only capable of allocating ROM data to parts of the far area that do not include mirror areas, and not to the near area. In this case, the far area must be referenced with a long code (specifying an extended address).

    The W0071 warning message is always output to indicate this.

  • For "W0072: Please check standard library function"
    Even if the small or medium model has been specified as the memory model, when the specification for allocating data to ROM (-rf) is made or the area free of mirror areas that is for use by the boot-flash relink function, ROM data are allocated to the far area rather than the near area. For this reason, standard library functions with "const *" arguments must be called with "_f" (the pointer is always handled as far) appended to the function name.

    The W0072 warning message is always output to indicate this.

    The standard library functions listed below have "const *" arguments.

    sprintf, sscanf, printf, scanf, vprintf, vsprintf, puts, atoi, atol, strtol, strtoul, atof, strtod, bsearch, qsort, memcpy, memmove, strcpy, strncpy, strcat, strncat, memcmp, strcmp, strncmp, memchr, strchr, strcspn, strpbrk, strrchr, strspn, strstr, strtok, strlen, strcoll, strxfrm
Suitable Products
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 and 78K Families
Compiler for RL78 Family and 78K0R [CA78K0R]