Hi,
I have Hitex Hitop V 5.3 and create a *.elf file.
When I would create a *.bin file with the bootwizrad (Click on load elf/binay and select the file) following error is shown:
The extracted image is to large (1342167188 bytes)
Please check your linker
But the file is only 1604252 bytes great.
Can someone help me
Br,
Rainer
Chris
Hi Rainer,
The Bootwizard tries to convert an elf image to a binary file. So lets take a closer look at both file formats first:
Converting an elf file to a binary file takes all the sections and fills the gaps between them. Depending on the sections addresses the result can get quite big. Just imagine one section in the internal ram at 0x00008000 and one section in SDRam at 0x80000000. The gap between both sections is almost 2 gigabyte! This means almost 2 gigabyte of fillup bytes will be written to the binary file. Whoa, that's a bit to much for a bootable image.
Sooo... your problem boils down to a huge gap between two sections in your elf file. Please check your project and especially your linker description file. There must be some data or code section which is far away from the rest. Do not worry, the linker can help you to find the problem. Add this to your linker options:
Rebuild your elf file and there will be a "mapfile.txt" with a lot of useful info about what goes where in the memory. The file will be not small, but with some digging you will get all the information you need to identify your problem.
Good luck!
[/]