Skip to main content
Renesas Electronics Europe - Knowledgebase

The warning message W0561520 regarding an on-chip debug option byte (CC-RL)

Last Updated:05/10/2017


I am using the CC-RL compiler for RL78 devices. When this error message appears, how can I resolve this?

W0561520:" on-chip debug " in ".option_byte" created by device file


This message appears since you have not specified an on-chip debug option byte for a device of the RL family.
Make sure to specify an on-chip debug option byte by using the -OCDBG option of the linker or in an assembly language source file.
If you use a specification in an assembly source file, you need to define the user option byte, as well as an on-chip debug option byte.

(Example) Specification in an assembly source file
.section .option_byte, opt_byte
.db    0xFD    ;address 0xC0
.db    0xFE     ;address 0xC1
.db    0xFF     ;address 0xC2
.db    0x04     ;address 0xC3

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family