DSPRelated.com
Forums

Splitting Overlay Sections

Started by andor_bariska December 14, 2004


Hi all,

Using VDSP++ 3.5 to develop code for a 21065L application.

I've defined some functions in an overlay which is stored in
external 32bit memory (the so-called live memory). At runtime, the
function code is loaded from the external into internal memory, and
afterwards executed. This all works fine from the simulator.

My problem: there seems to be no way to use the splitter utility
(elfspl21k.exe) to generate a splitter file (byte stack) of the code
in the overlay live memory (32bit). While the memory segment is
defined, the appropriate section definition in the ldf file does not
result in a section output in the DXE file. The error message is:
"Segment not defined [Error 24]".

One workaround would be to manually dump the 32bit memory contents
into a file directly from VDSP and wrap it in a hand-computed byte
stack header. This obviously is very tedious: evey time the code in
the overlay changes, I have to dump it to a file and recalculate the
byte stack header from the memory map.

Has anybody ever used and succeeded in placing code in external
memory and using the splitter utility to make an image of the live
memory?

Best regards,
Andor