Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
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...@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. >______________________________
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______________________________