Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20705 Discussions

Quartus 7.1 Sp1 and DSPBuilder 7.1Sp1

Altera_Forum
Honored Contributor II
2,919 Views

Hallo everyone, 

 

I have a problem with my Installation. I have installed Quartus 7.1 Sp1 and DSPBuilder 7.1Sp1.  

 

If I want compile any Example Model like "singen" an error occured. 

 

The SignalCompiler shows the following message: 

 

Created Quartus II Project C:\altera\71\quartus\dsp_builder\DesignExamples\Tutorials\GettingStartedSinMdl\singen_dspbuilder\singen.qpf 

Generating HDL 

Analyzing model... 

Matlab Error 

Java exception occurred:  

java.lang.UnsatisfiedLinkError: checkOut 

at com.altera.dspbuilder.portmanager.PortManager.checkOut(Native Method) 

at com.altera.dspbuilder.serialisation.ModelSerialiser.<init>(ModelSerialiser.java:88) 

Error during generation: Analyzing Error: See log for details. 

 

Has anyone an idea who is the problem? or where I can found the log file? 

 

So long  

Mario
0 Kudos
31 Replies
Altera_Forum
Honored Contributor II
573 Views

I am installed on XP with R2007a and when I type this in this is what I get. 

 

I am running just fine by the way. 

I have added this to help with the debug effort you are going through. 

 

 

>> java.lang.System.load('c:\altera\72\quartus\dsp_builder\bin\PortManager .dll') 

??? Java exception occurred:  

java.lang.UnsatisfiedLinkError: Can't load library: c:\altera\72\quartus\dsp_builder\bin\PortManager .dll 

 

at java.lang.ClassLoader.loadLibrary(Unknown Source) 

 

at java.lang.Runtime.load0(Unknown Source) 

 

at java.lang.System.load(Unknown Source)
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Hmmm, I'm not actually near a DSP Builder installation at the moment so I was guessing the path. Does the file actually exist on your system? (Beware the forum seems to insert spaces into file names - when I typed it there were no spaces between the quotes).

0 Kudos
Altera_Forum
Honored Contributor II
573 Views

I got rid of the space after PortManager 

Yes, the file PortManager.dll is in that directory. 

 

When I hit return, all that ocurs is a very slight delay, then a new prompt.
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

That is what I would expect - it means the DLL has loaded properly. The question is - what happens on a machine where DSP Builder is not working properly...

0 Kudos
Altera_Forum
Honored Contributor II
573 Views

And I'm your guy... 

 

This is what I get: 

 

>> java.lang.System.load('c:\altera\7.2\quartus\dsp_builder\bin\PortManager.dll') 

??? Java exception occurred:  

java.lang.UnsatisfiedLinkError: Can't load library: c:\altera\7.2\quartus\dsp_builder\bin\PortManager.dll 

 

at java.lang.ClassLoader.loadLibrary(Unknown Source) 

 

at java.lang.Runtime.load0(Unknown Source) 

 

at java.lang.System.load(Unknown Source) 

 

 

>>  

 

Same result as Avatar? And after installing Matlab R2006b and re-installing DSP Builder 7.2, I still have exactly the same problem with Signal Compiler. 

 

But are you saying that this is the expected repsonse to the load and indicates success?
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Oh, OK, I just read Avatar's response more carefully. I was careful to remove spaces, so don't think that's my problem.

0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Ok, please reset me. 

 

I just noticed that my directory path is in fact c:\altera\72\quartus\dsp_builder\bin\PortManager.dll (i.e. not ...\7.2\...) After this correction I get: 

 

>> java.lang.System.load('c:\altera\72\quartus\dsp_builder\bin\PortManager.dll') 

??? Java exception occurred:  

java.lang.UnsatisfiedLinkError: C:\altera\72\quartus\dsp_builder\bin\PortManager.dll: Invalid access to memory location 

 

at java.lang.ClassLoader$NativeLibrary.load(Native Method) 

 

at java.lang.ClassLoader.loadLibrary0(Unknown Source) 

 

at java.lang.ClassLoader.loadLibrary(Unknown Source) 

 

at java.lang.Runtime.load0(Unknown Source) 

 

at java.lang.System.load(Unknown Source) 

 

 

>> 

 

This is clearly a different failure. What could it mean?
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Ok this message is the key to the problem. When PortManager.dll is loaded, it or one of the libraries it links to is misusing memory on your machine. 

 

I suspect a library somewhere on your computer is corrupt. If you have access to Visual C++ or some other debugger, you could attach to the MATLAB process and trap the access exception which would tell us where the error was happening... Other than that I can only suggest trying another machine.
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

I had a similar problem involving PortManager.dll with DSP Builder 7.2 (no service packs) on a W2K machine.  

When I tried compile in Signal Compiler I got: 

 

============================= 

Pop-up window: 

MATLAB.exe - Entry Point Not Found 

The procedure entry point SymFromAddr could not be located in the dynamic link library dbghelp.dll 

============================= 

signal compiler Messages: 

 

Info: Generating HDL 

 

Info: Analyzing Simulink model 

 

Matlab Error 

Java exception occurred:  

java.lang.UnsatisfiedLinkError: checkOut 

at com.altera.dspbuilder.portmanager.PortManager.checkOut(Native Method) 

at com.altera.dspbuilder.serialisation.ModelSerialiser.<init>(Unknown Source) 

at com.altera.dspbuilder.serialisation.ModelSerialiser.<init>(Unknown Source) 

at com.altera.dspbuilder.serialisation.ModelSerialiser.<init>(Unknown Source) 

Error: Error during compilation: Error: Error analyzing model see log for details. 

============================ 

Matlab commando window: 

C:\altera\72\quartus\dsp_builder\bin\PortManager.dll: The specified procedure could not be found 

============================ 

 

So I googled on SymFromAddr and dbghelp.dll and found  

 

http://msdn2.microsoft.com/en-us/library/ms679294.aspx 

 

DbgHelp Versions 

 

Versions 4.0 and 5.1  

The following functions were added to DbgHelp versions 4.0 and 5.1.  

SymFromAddr 

 

 

So I noticed I had a rather old dbghelp.dll: 

 

C:\WINNT\system32>dir dbgh* 

2003-06-19 13:05 163 088 dbghelp.dll 

 

I don't know how to check the actual version number, but I guess it's older than 4.0/5.1 

 

 

I found http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx 

downloaded and installed dbg_x86_6.5.3.8.exe and rebooted 

 

and then signal compiler worked :-)
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Hello, I have quite similar problems with DSP Builder... 

 

I have Windows XP + Matlab R2007a installed + Quartus II 7.2sp2 Web Edition + DSP Builder 7.2. I've installed this dbg_x86_6.5.3.8.exe from http://www.microsoft.com/whdc/devtoo...nstallx86.mspx.  

 

Before this installation when I typed  

 

"java.lang.System.load('d:\quartus\quartus\dsp_builder\bin\PortManager.dll')

 

then I was getting the same error as Factsarescarce. After installation dbg_x86_6.5.3.8.exe when I type  

 

"java.lang.System.load('d:\quartus\quartus\dsp_builder\bin\PortManager.dll')

 

Matlab is freezed, status changes to Busy and there is no response from Matlab and i must shut it down from process manager.  

 

When I open an example project from DSP Builder directory (singen.mdl), click on Signal Complier and click Compile it runs but after a while it stops at this point... 

 

http://www3.speedyshare.com/data/295207951/9660288/20451456/signalcompiler.jpg 

 

and again I must shut Matlab down from process manager... 

 

When I run Dependency Walker the result was as in screen 

 

http://www3.speedyshare.com/data/247563530/9660326/56727428/dependency.jpg 

 

I don't know what is wrong...Matlab is installed without option "read-only", envirnoment variable QUARTUS_ROOT is set to d:\quartus\quartus (DSP Builder is installed in D:\quartus\quartus\dsp_builder). 

 

Maybe You have some suggestions? You think that it isn't a problem with DSP Builder but the problem is in my system? 

 

Thanks in advance.
0 Kudos
Altera_Forum
Honored Contributor II
573 Views

Ok, I've read carefully DSP Builder User Guide and found a source of a problem.  

 

In Troubleshooting chapter I found the "DSP Builder StartUp Dependencies", checked all error possibilities and found this note: 

 

"4. When Cygwin is installed, make sure that it is listed after Quartus in 

the path. Correct environment settings in Cygwin do not guarantee 

that Signal Compiler will start properly, as DSP Builder relies on 

DOS settings rather than Cygwin. (When MATLAB is started from a 

Cygwin command prompt window, system env in the MATLAB 

command window only reflects the Cygwin settings.)" 

 

and.. 

 

"5. If there are any other operation systems, such as WinVar, installed 

on top of Windows, make sure that they are listed after Quartus in 

the PATH environment variable." 

 

I have Cygwin installed on my computer and when I done everything according to point 4, then DSP Builder started to work :) 

 

Cheers!
0 Kudos
Reply