Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

Inserting Binary File in Data Flash Area_CC-RL

Last Updated:01/31/2018

Question:

I am using RL78 compiler CC-RL. Is it possible to allocate the contents of the binary file in the data flash area by using the -binary option?

Answer:

For CC-RL V1.05.00 or later, it is possible by using the -binary option of the linker.
However, with the -binary option of the linker of CC-RL V1.04.00 or earlier, the binary file can be allocated to only addresses 0 to 0x0FFFF.
 

With the -binary option in the linker, the binary file can be allocated to only addresses 0 to 0x0FFFF. Therefore, create an assembler source code that specifies a valid address, and then use the BINCLUDE control instruction of the assembler to include the binary file.
 
<Example>
DATAF .CSEG AT 0xF1000
$BINCLUDE(sample.bin)

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