Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
RENESAS TOOL NEWS on July 1, 2004: RSO-M3T-NC30WA_1-040701D

A Note on Using C Compiler Package
M3T-NC30WA V.5.30 Release 1
--On Selecting Link Option "-R8C"--

Please take note of the following problem in using the M3T-NC30WA V.5.30 Release 1 C-compiler package for the M16C/60, M16C/30, M16C/Tiny, M16C/20, M16C/10, and R8C/Tiny series of the M16C family MCUs:
  • On selecting link option "-R8C"


  1. Versions Concerned
    M3T-NC30WA V.5.30 Release 1


  2. Description
    If link option "-R8C" is selected, the following problems occur in the message telling the value set in the ROM code protect control address:

    (1) The message itself is incorrect.
    For
      Caution!! The Value of ID code protect control address is xxH
    read
      Caution!! The Value of ROM code protect control address is xxH

    NOTE: xxH denotes the value set in the ROM code protect control address

    (2) The message may not tell the correct value. Note, however, that the code is generated correctly though the value told is incorrect.


    2.1 Conditions
    This problem occurs if the following two conditions are satisfied:
    (1) Link option "-R8C" is selected.
    (2) The value of the ROM code protect control address is set using such an assembler directive commnad as ".LWORD".

    2.2 Example
    Source file in assembly language:
       -------------------------------------------------------------------
           .section  fvector,ROMDATA
           .org  0FFFCH
         RESET:
           .lword    start | 0FF000000H
           .end
       -------------------------------------------------------------------
    
    Message displayed at invoking the ln30 linker:
       -------------------------------------------------------------------
         > ln30 -R8C sample
    
       . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    
           Caution!! The Value of ID code protect control address is 0H
       -------------------------------------------------------------------
       The correct value to be displayed is not "0H" but "FFH".


  3. Workaround
    When setting a value in the ROM code protect control address, use assembler directive command ".PROTECT".
    Example of Modification:
        Source file in assembly language:
        -------------------------------------------------------------------
            .section  fvector,ROMDATA
            .org  0FFFCH
          RESET:
            .lword    start
            .protect  0FFH
            .end
        -------------------------------------------------------------------
    

  4. Schedule of Fixing the Problem
    We plan to fix this problem in our next release of the product.





© 2008. Renesas Technology Corp., All rights reserved. Privacy | Legal