25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Loader</strong> for ADSP-2126x/2136x/2137x SHARC Processors<br />

The linker packs the external memory data in the .dxe file according to<br />

the WIDTH() <strong>and</strong> PACKING() comm<strong>and</strong>s. This is the only valid way to specify<br />

external memory. The correct physical address is in the .dxe file<br />

(selected with WIDTH() <strong>and</strong> PACKING()) because each 8-bit or 16-bit word<br />

occupies one external address, <strong>and</strong> there is no logical addressing of external<br />

memory. The loader utility unpacks the data from the .dxe file <strong>and</strong><br />

packs the data again into 32-bit words in the loader file (see Table 5-4). In<br />

the loader file, tag INIT_EXT8 is used for 8-bit external packed sections,<br />

<strong>and</strong> tag INIT_EXT16 is used for 16-bit external packed sections.<br />

Table 5-4. External Packed Sections in .DXE Files Versus Repacked Blocks<br />

in .LDR Files<br />

External<br />

Width<br />

� ZERO_INIT<br />

Address<br />

in .dxe<br />

Packed<br />

in .dxe<br />

WIDTH(8) 0x01000000 0x0000001100<br />

0x01000001 0x0000002200<br />

0x01000002 0x0000003300<br />

Block Address<br />

in .ldr<br />

Repacked to 32-bit<br />

in .ldr<br />

0x01000003 0x0000004400 0x01000000 0x44332211<br />

0x01000004 0x0000005500<br />

0x01000005 0x0000006600<br />

0x01000006 0x0000007700<br />

0x01000007 0x0000008800 0x01000004 0x88776655<br />

WIDTH(16) 0x02000000 0x0000112200<br />

0x02000001 0x0000334400 0x02000000 0x33441122<br />

0x02000002 0x0000556600<br />

0x02000003 0x0000778800 0x02000002 0x77885566<br />

sections are treated like 32-bit ZERO_INIT sections,<br />

meaning the count contains the number of 32-bit zeros.<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> 5-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!