Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
MESC TOOL NEWS: MESCT-NC77WA-981201D

NC77WA, NC77, NC79WA, NC79
Precautions

Please take note of the following problems in using compilers NC77WA and NC77 for the 77XX series and NC79WA and NC79 for the 7900 series of microcomputers.


On #pragma ROM Directive
  1. Versions Concerned
    Product NameVersions
    NC77WA, NC77V.4.00 Release 1 to V.5.00 Release 1
    NC79WA, NC79V.2.00 Release 1 to V.3.00 Release 1

  2. Problem
    The "-ffar_ROM_data" option fails to work only on the variables defined by the #pragma ROM directive; i.e., these variables cannot be located in the far section.

  3. Conditions
    This problem occurs if the following two conditions are satisfied:
    1. A variable is defined by the #pragma ROM directive.
    2. The "-ffar_ROM_data" option is used.

  4. Example
    [C Source File]
    -----------------------------------------------------------------------
    
       #pragma ROM    data;
       int data = 0; 
    
    -----------------------------------------------------------------------
    
    [Compilation]
    -----------------------------------------------------------------------
    
       nc77 -c -ffar_ROM_data sample.c
    
    -----------------------------------------------------------------------
    
  5. Workaround
    Declare variables to be of type "const"; they have not to be defined by the #pragma ROM directive.
    [C Source File]
    -----------------------------------------------------------------------
    
       const int data = 0;
    
    -----------------------------------------------------------------------
    
  6. Notes
    1. This problem occurs only in the variables defined by the #pragma ROM directive.
    2. When the "-fall_far" option is used which maps both RAM and ROM in the far section, the variables mentioned above are correctly located in the far section.

On #pragma SECTION Directive
  1. Versions Concerned
    Product NameVersions
    NC77WA, NC77V.4.00 Release 1 to V.5.00 Release 1
    NC79WA, NC79V.2.00 Release 1 to V.3.00 Release 1

  2. Problem
    Interrupt sections cannot be renamed by using the function of the #pragma SECTION directive; i.e., their names remain unchanged with the message "Invalid #pragma SECTION, unknown section base name" displayed.

  3. Condition
    This problem occurs if an interrupt section is renamed by using the function of the #pragma SECTION directive.

  4. Example
    [C Source File]
    -----------------------------------------------------------------------
    
       #pragma SECTION    interrupt warikomi
    
    -----------------------------------------------------------------------
    
  5. Workaround
    Don't rename interrupt sections by using the function of the #pragma SECTION directive.




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