I do have the requirement to generate a binary file for the 8051 code which is banked.
I did saw in the forum to use oc51 to generate individual abs file and then use oh51 to get respective Intelhex file. The Hex2bin would convert to bin.
The same is not working for me. 1. OC51 generated 2 files 8051.B01 & 8051.B02 Both of them contained the common area. 2. Hex2Bin did not give the correct merged file
The following is the commands that i specified
C:\Keil\C51\BIN\OC51.EXE 8051.abs C:\Keil\C51\BIN\OH51.EXE 8051.B01 HEXFILE (Bank1.hex) C:\Keil\C51\BIN\OH51.EXE 8051.B02 HEXFILE (Bank2.hex)
HEX2BIN Bank1.hex 8051.bin HEX2BIN /M /On0x100000 Bank2.hex 8051.bin