Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Analog Devices DSPs | ADSP-21369 Simulator - PC Stack Underflow

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

ADSP-21369 Simulator - PC Stack Underflow - ken....@harman.com - Aug 11 18:12:05 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.  
>  
>  
>  
>  
>      	    
>  
>

______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: ADSP-21369 Simulator - PC Stack Underflow - Mike Rosing - Aug 12 12:08:57 2009

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.
>

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

RE: ADSP-21369 Simulator - PC Stack Underflow - "Frederickson, Ken" - Aug 12 14:50:37 2009

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...@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, 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.
>

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: ADSP-21369 Simulator - PC Stack Underflow - Jaime Andres Aranguren Cardona - Aug 14 14:47:02 2009

Hello guys,

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

Regards.

=20
Jaime Andr=E9s Aranguren Cardona
j...@ieee.org
j...@computer.org

________________________________
From: "Frederickson, Ken" <k...@harman.com>
To: Mike Rosing <e...@eskimo.com>
Cc: "a...@yahoogroups.com" <a...@yahoogroups.com>
Sent: Wednesday, August 12, 2009 7:43:14 PM
Subject: RE: [adsp] ADSP-21369 Simulator - PC Stack Underflow

=20=20
Thanks Mike.  I'll do that.  FYI, I upgraded to VisualDSP++ 5.0 and the pro=
blem persists.

-----Original Message-----
From: Mike Rosing [mailto:eresrch@eskimo. com]=20
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,=20
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 t=
he compiler translated this into a cjump.  However, this action apparently =
is not pushing the PC return location onto the PC stack during the call.  S=
o when the assembly routine has completed and the program hits the RTS inst=
ruction, there is nothing on the PC stack to pop, which results in a PC sta=
ck 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.
>
=20=20=20
=20=20=20=20=20=20

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )