industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 27.01.2010 | 15:36 | 1 reply

Error Message in Bootwizard V 1.0.401.0

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

Chris

| 27.01.2010 | 18:41

Hi Rainer,

Rainer Versteeg wrote:
The extracted image is to large (1342167188 bytes)

The Bootwizard tries to convert an elf image to a binary file. So lets take a closer look at both file formats first:

  • An elf image can consist of several sections, one for each place in the netX memory where some data goes. The distance between these sections does not matter. They are saved separately in the elf file.[/*:m]
  • A binary image is just one continuous block. There is nothing like sections and there is no possibility to save multiple regions.[/*:m]

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:

-Map=mapfile.txt

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!

[/]

Login