This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

hex2bin utility for converting hex file to binary image that needs to be preloaded to ROM

Hi,

I have an RTL test bench consisting of ARM926 and ARM1176 DSM models, in which I preload ROM memory with the desired MMU page table hex data information. Hence, no configuration of page tables is done from the boot code during MMU init.

page_table.hex
--------------
0000080A
00100802
00200000

I have an ESL virtual platform, using SystemC/PV models that I need to preload with the same information. The PV model only accepts a .bin format. I'd like to know if you have a utility like from-elf that converts this hex file to bin format.

People suggested me to go for HEX2BIN utility.When I tried to use it to convert my hex file(on unix) it doesn't work,So I would like to ask the following Queries:
1) HEX2BIN works on unix?? (I assume No).
2) when I give hex2bin page_table.hex in DOS, it prints the message "Successful" but the .bin file is of 0kb.Can you please let me know how to use it for the above mentioned entries.

Regards
Vikas Gupta

0