메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

Inserting binary file in data flash (RL78 CC-RL)

Latest Updated:12/05/2016

Question:

Can the -binary option within the RL78 CC-RL compiler be used to allocate the contents of the binary file in the data flash area?

Answer:

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