DSPRelated.com
Forums

ADSP-21369 Simulator - PC Stack Underflow

Started by ken....@harman.com August 11, 2009
I'm having similar issues trying to simulate an ADSP-21369 mixed C++ and asm program using VisualDSP++ 4.5.

When calling my assembly routine from a C++, the disassembly shows that the compiler translated this into a cjump. However, this action apparently is not pushing the PC return location onto the PC stack during the call. So when the assembly routine has completed and the program hits the RTS instruction, there is nothing on the PC stack to pop, which results in a PC stack underflow.

Does anyone have experience with this issue?

Thanks.

Ken
>
>
>
> I am running "vecmax" example,given in adsp 21160 simulator.
>While debugging it is giving debugging error,PC stack underflow.
>I am not understanding what is the problem, if anyone have idea
>about this then please mail to me.
>
>
>
>
>
>
>
Howdy Ken,

I suggest contacting ADI directly. Sounds like a bug in the simulator,
and they may already have a fix for it.

Patience, persistence, truth,
Dr. mike

On Tue, 11 Aug 2009, k...@harman.com wrote:

> I'm having similar issues trying to simulate an ADSP-21369 mixed C++ and asm program using VisualDSP++ 4.5.
>
> When calling my assembly routine from a C++, the disassembly shows that the compiler translated this into a cjump. However, this action apparently is not pushing the PC return location onto the PC stack during the call. So when the assembly routine has completed and the program hits the RTS instruction, there is nothing on the PC stack to pop, which results in a PC stack underflow.
>
> Does anyone have experience with this issue?
>
> Thanks.
>
> Ken
>>
>> I am running "vecmax" example,given in adsp 21160 simulator.
>> While debugging it is giving debugging error,PC stack underflow.
>> I am not understanding what is the problem, if anyone have idea
>> about this then please mail to me.
>
Thanks Mike. I'll do that. FYI, I upgraded to VisualDSP++ 5.0 and the problem persists.

-----Original Message-----
From: Mike Rosing [mailto:e...@eskimo.com]
Sent: Wednesday, August 12, 2009 6:45 AM
To: Frederickson, Ken
Cc: a...
Subject: Re: [adsp] ADSP-21369 Simulator - PC Stack Underflow

Howdy Ken,

I suggest contacting ADI directly. Sounds like a bug in the simulator,
and they may already have a fix for it.

Patience, persistence, truth,
Dr. mike

On Tue, 11 Aug 2009, k...@harman.com wrote:

> I'm having similar issues trying to simulate an ADSP-21369 mixed C++ and asm program using VisualDSP++ 4.5.
>
> When calling my assembly routine from a C++, the disassembly shows that the compiler translated this into a cjump. However, this action apparently is not pushing the PC return location onto the PC stack during the call. So when the assembly routine has completed and the program hits the RTS instruction, there is nothing on the PC stack to pop, which results in a PC stack underflow.
>
> Does anyone have experience with this issue?
>
> Thanks.
>
> Ken
>>
>> I am running "vecmax" example,given in adsp 21160 simulator.
>> While debugging it is giving debugging error,PC stack underflow.
>> I am not understanding what is the problem, if anyone have idea
>> about this then please mail to me.
>
Hello guys,

A simple and maybe obvious hint: are those installations patched to the latest updates? If this is a known bug, it is likely to be fixed there.

Regards.


Jaime Andr Aranguren Cardona
j...@ieee.org
j...@computer.org

________________________________
From: "Frederickson, Ken"
To: Mike Rosing
Cc: "a..."
Sent: Wednesday, August 12, 2009 7:43:14 PM
Subject: RE: [adsp] ADSP-21369 Simulator - PC Stack Underflow


Thanks Mike. I'll do that. FYI, I upgraded to VisualDSP++ 5.0 and the problem persists.

-----Original Message-----
From: Mike Rosing [mailto:eresrch@eskimo. com]
Sent: Wednesday, August 12, 2009 6:45 AM
To: Frederickson, Ken
Cc: adsp@yahoogroups. com
Subject: Re: [adsp] ADSP-21369 Simulator - PC Stack Underflow

Howdy Ken,

I suggest contacting ADI directly. Sounds like a bug in the simulator,
and they may already have a fix for it.

Patience, persistence, truth,
Dr. mike

On Tue, 11 Aug 2009, ken.frederickson@ harman.com wrote:

> I'm having similar issues trying to simulate an ADSP-21369 mixed C++ and asm program using VisualDSP++ 4.5.
>
> When calling my assembly routine from a C++, the disassembly shows that the compiler translated this into a cjump. However, this action apparently is not pushing the PC return location onto the PC stack during the call. So when the assembly routine has completed and the program hits the RTS instruction, there is nothing on the PC stack to pop, which results in a PC stack underflow.
>
> Does anyone have experience with this issue?
>
> Thanks.
>
> Ken
>>
>> I am running "vecmax" example,given in adsp 21160 simulator.
>> While debugging it is giving debugging error,PC stack underflow.
>> I am not understanding what is the problem, if anyone have idea
>> about this then please mail to me.
>