You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The description in the following Knowledge Base article states that with the use of the -binary option in Linker, binary files within 64KB can be assigned to the address range of 0-0x0FFFF.

https://en-support.renesas.com/knowledgeBase/16978856

However, how can binary files larger than 64KB be linked to the project?

To link binary files of any size, create assembly source code and specify the address. Then, use the assembler's BINCLUDE control instruction to include the binary file.

Add the section of (. textfd1_f) starting from address 0x00012000 in the section settings. The starting address can be specified as needed, and 0x00012000 is used here as an example.

Then, use the following statement in the assembly source code to place (App5. bin) in the section of (. textfd1_f).

.SECTION .textfd1_f, TEXTF
$BINCLUDE(App5.bin)

After completing the above settings, compile the project and view the map file. The section (.textfd1_f) beginning at 0x00012000 contains data with a size of 0x1341C, successfully linking binary files that exceed 64KB.

A similar method links binary files into Data Flash. Use the following assembly code statement, where 0xF1000 is the starting address for linking binary files.

DATAF .CSEG AT 0xF1000
$BINCLUDE(App6.bin)

After compiling, review the map file to verify that the 4KB (0x1000) binary file has been linked to the address 0x000F1000 (data flash area).


  • No labels