跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

Specification order of user option bytes in linkage options_CA78K0R

Last Updated:02/28/2018

Question:

I am using the CA78K0R compiler for RL78 and 78K0R. I do not know how to specify user option bytes (such as the specification order and byte delimiter) in the linker. How are they specified?

Answer:

To specify user option bytes, arrange three hexadecimal numbers successively from the low-order address in the -gb option of the linker.
(Example) The following explanation uses numbers for which arrangement is easily understood.
   Note that these numbers are not values that can be actually stored in an MCU.
  If values are stored in user option bytes as follows,
   value 0x12 is stored in the 0C0H address 
   value 0x34 is stored in the 0C1H address 
   value 0x56 is stored in the 0C2H address 
  specify the following value:
   123456
Suitable Products
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 and 78K Families
C compiler for RL78 Family and 78K0R[CA78K0R]
  • 这篇文章对您有帮助吗?