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""
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.
.cseg ; Add this.
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.
|CS+ (formerly CubeSuite+)|
|C Compiler Package for RL78 Family|