跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

E0562320 Message when Option Byte is Described in Assembler Source_CC-RL

Last Updated:02/28/2018

Question:

I am using RL78 Compiler CC-RL. I created a program that sets the value of the option byte with the assembler source program. However, the following error occurred. How do I resolve this?
"E0562320:Section address overflowed out of range : ".option_byte_ATC4""
(Example)
.cseg OPT_BYTE
.db 0xef
.db 0xff
.db 0xe8
.db 0x84

.org 0xc4
.db 0
 

Answer:

The section named .option_byte of the option byte is specially treated. This error occurred because the size of the .option_byte section is larger than the option byte area. Add the .CSEG pseudo instruction to the line before the .ORG section pseudo instruction arranged at address 0xc4.

(Example)
.cseg OPT_BYTE
.db 0xef
.db 0xff
.db 0xe8
.db 0x84

.cseg ; Add this.
.org 0xc4
.db 0

When OPT_BYTE is specified as the reallocation attribute in the .CSEG pseudo instruction, the .option_byte section name is output.
In the subsequent .ORG pseudo instruction, the section name is .option_byte_ATC4, which comes from the name (in this example, .option_byte) of the section in which the .ORG pseudo instruction is described.

In this way, the error was output because the section was granted allocation in the option byte and the size of the option byte area was exceeded.

You can avoid this error by using the .CSEG pseudo instruction before the .ORG pseudo instruction. By doing this, the section name generated by the .ORG pseudo instruction does not contain .option_byte.
 

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family
  • 本文是否實用?