DSPRelated.com
Forums

external heap problems in sharc 21161

Started by doranwu February 20, 2003
Hi All,

We are having problems when we specify heap in external memory.
We are using Visual DSP++ 3.0 on 21161N EZ-Kit (Rev 2.2);
the kernel that comes with Visual DSP++; PCI emulator (Rev 7.0.0.0).

We've written a very simple application which works if we specify
heap to be in internal memory. If we specify heap to use external
memory, the system hangs.

Has anyone been able to use heap in external ram on a 21161 platform
using Visual DSP++ 2.0 or 3.0 kernel?

Any help would be appreciated.

Regards,
Patrick Doran-Wu
Tieline Research


Did you ever find a solution to this problem? > Hi All,
>
>We are having problems when we specify heap in external memory.
>We are using Visual DSP++ 3.0 on 21161N EZ-Kit (Rev 2.2);
>the kernel that comes with Visual DSP++; PCI emulator (Rev 7.0.0.0).
>
>We've written a very simple application which works if we specify
>heap to be in internal memory. If we specify heap to use external
>memory, the system hangs.
>
>Has anyone been able to use heap in external ram on a 21161 platform
>using Visual DSP++ 2.0 or 3.0 kernel?
>
>Any help would be appreciated.
>
>Regards,
>Patrick Doran-Wu
>Tieline Research >




Hi

I assume with the word "kernel" in the email that we are relating to VDK? I cannot provide an answer to this specific example but I did run into a few issues with VDK in VisualDSP++ 3.0.

The one I remember was relating to the fact that SIMD and long accesses were ocurring in certain sections of the kernel. I especially remember the fact that this happened with interrupts and it was due to the fact that with majority of interrupts the Mode 1 register is not saved to the stack and the PEy bit can be enabled during the ISR. This then caused problems when returning from the routine as SIMD was enabled and this conflicted with some instructions in the kernel.

It may be that long accesses are causing a problem. I haven't used VDK for a while now so can't say much on the Version 3.5 or 4.0. > Did you ever find a solution to this problem? >>
>>
>>
>> Hi All,
>>
>>We are having problems when we specify heap in external memory.
>>We are using Visual DSP++ 3.0 on 21161N EZ-Kit (Rev 2.2);
>>the kernel that comes with Visual DSP++; PCI emulator (Rev 7.0.0.0).
>>
>>We've written a very simple application which works if we specify
>>heap to be in internal memory. If we specify heap to use external
>>memory, the system hangs.
>>
>>Has anyone been able to use heap in external ram on a 21161 platform
>>using Visual DSP++ 2.0 or 3.0 kernel?
>>
>>Any help would be appreciated.
>>
>>Regards,
>>Patrick Doran-Wu
>>Tieline Research
>>
>>
>>
>>
>>
> >
>