problem in creating bin file

In my project i have one main file(it has the main function) and five files which contain a function each and is called from main function one by one. When i use the following setting in link file
COMMON{startup.obj},
COMMON{protect.obj},
COMMON{l51_bank.obj},
COMMON{main.obj},
BANK1{file_1.obj},
COMMON{file_2.obj},
COMMON{file_3.obj},
COMMON{file_4.obj},
COMMON{file_5.obj} TO clk_freq
BANKAREA(0x8000, 0xFFFF)

and after that i use follwoing commands to generate the bin file.

LX51 @link_CLK.lnk

OHX51 clk_freq HEXFILE(clk_freq.Hxx) H386 MERGE32K
hexbin2 clk_freq.hxx clk_freq.bin i 0000 7fff 2

the size of file is as follows
clk_freq (OMF51 obj module) --> 22kb
clk_freq.hex --> 6kb
clk_freq.bin --> 33 kb
The size are fine and as per expected, but when i use the following settings in link file

COMMON{startup.obj},
COMMON{protect.obj},
COMMON{l51_bank.obj},
COMMON{main.obj},
COMMON{file_1.obj},
COMMON{file_2.obj},
COMMON{file_3.obj},
COMMON{file_4.obj},
COMMON{file_5.obj} TO clk_freq
BANKAREA(0x8000, 0xFFFF)

that is all files in common bank than the bin file is not generated, the file size are as follows

clk_freq (OMF51 obj module) --> 20 kb
clk_freq.hex --> 1 kb
clk_freq.bin --> 0 kb

can anyone please tell me why the binary file is not generated when all the files are kept in same bank.

Parents Reply Children
No data
More questions in this forum