Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

There are no errors that appeared when using NC30 V.5 or earlier. Why?"

Latest Updated:10/05/2012

Question:

M16C series, R8C family C/C++ compiler package V.6 or later (NC30 V.6) generates errors if I build a project linked with middleware or drivers for M16C series and R8C family MCUs.
That does not happen when using NC30 V.5 or earlier. Why?

Answer:

Since the object format handled by a compiler differs between NC30 V.6 and NC30 V.5 or an earlier version, an error occurs. Convert the relevant libraries into the ELF format using the ELF format converter included in NC30 V.6, newly create a project in the NC30 V.6 environment using a project created by NC30 V.5 as a reference, and link the libraries converted into the ELF format. An error may be avoided by this method.

It has been confirmed that this method can be used to avoid this problem in the following middleware and driver products.

Confirmed products:

  • "FAT File System Supporting Long Filenames for M16C/60 Series, M16C/50 Series, M16C/30 Series, M16C/Tiny Series, and M16C/20 Series" (M3S-F16LB62)
  • "FAT File System for M16C/60 Series, M16C/50 Series, M16C/30 Series, M16C/Tiny Series, and M16C/20 Series" (M3S-F16LB63)
  • "Multimedia Card/SD Memory Card for M16C/60 Series, M16C/30 Series, M16C/Tiny Series, and M16C/20 Series" (M3S-MMCSLBM)
  • "Multimedia Card/SD Memory Card for R8C Family" (M3S-MMCSLBR)
  • "Data Flash Driver for M16C/60 Series and M16C/50 Series" (M3S-DATFJ)

The conversion method of the object format and the linkage method of the libraries are described in the following.

  1. Converting to ELF format

    Convert to ELF format as described in the FAQ below.
    FAQ 1000595

  2. Add library files converted to ELF format to a project for NC30 V.6 with High-performance Embedded Workshop environment.

    (1) From the High-performance Embedded Workshop menu, select [Build] → [Renesas M16C Standard Toolchain] to open the [Renesas M16C Standard Toolchain] dialog box, and select the [Link/Library] tab in this dialog box.

    (2) Select [Library files] at [Show Entries For], and click [Add].

    (3) Click [Browse...]and specify a library file converted to ELF format at Step 1. Repeat Step (2) to (3) until all corresponding library files are specified.

    (4) Click [OK] to close the [Renesas M16C Standard Toolchain] dialog box.
Suitable Products
Middleware and Drivers