Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 Discussions

MMD ERROR while connecting to board

Altera_Forum
Honored Contributor II
4,786 Views

Hi 

 

ive got some troubles setting up an initial Hello World (for opencl) . (windows7, 64) 

 

the current error I get is " MMD ERROR: failed to scan for the PCI device."  

 

this error is appearing when trying to program FPGA with "aocl program" after compiling the kernel file. 

 

aocl program: Running program from D:\altera_pro\15.1\hld\board/windows64/libexec 

Setting debug level to 1 

HAL : Getting info version: 14.1 

HAL : Uses yield 0 

HAL : Getting info vendor: Altera Corporation 

HAL : Getting info num_boards: 32 

HAL : Getting info boards: acla10_ref0;acla10_ref1;acla10_ref2;acla10_ref3;acla1 

0_ref4;acla10_ref5;acla10_ref6;acla10_ref7;acla10_ref8;acla10_ref9;acla10_ref10; 

acla10_ref11;acla10_ref12;acla10_ref13;acla10_ref14;acla10_ref15;acla10_ref16;ac 

la10_ref17;acla10_ref18;acla10_ref19;acla10_ref20;acla10_ref21;acla10_ref22;acla 

10_ref23;acla10_ref24;acla10_ref25;acla10_ref26;acla10_ref27;acla10_ref28;acla10 

_ref29;acla10_ref30;acla10_ref31 

HAL : Calling mmd_open on acla10_ref0 

 

:: MMD DEBUG LEVEL set to 1 

 

MMD ERROR: failed to scan for the PCI device. 

HAL : device not found! 

HAL : Calling mmd_open on acla10_ref1 

 

:: MMD DEBUG LEVEL set to 1 

 

MMD ERROR: failed to scan for the PCI device. 

HAL : device not found! 

HAL : Calling mmd_open on acla10_ref2 

 

MMD ERROR: failed to scan for the PCI device. 

HAL : device not found! 

Found 0 devices 

Failed clGetDeviceIDs. 

Error code: -1 

OpenCL Notification Callback: Invalid device specified 

Failed clCreateContext. 

Error code: -33 

aocl program: Program failed. 

 

 

Any idea what this could be? It shouldn't be a board/PCIe port problem because when i program sof file through JTAG, my host PC can recognition the board. 

 

is the driver not well installed?? or is the mmd library not up to date?  

 

Thanks for any help!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
3,492 Views

Check Device Manager, you should see Jungo installed, but you should also see the A10 Reference board under the "Accelerators" group. 

 

You should also run "aocl diagnose" and see if that passes.
0 Kudos
Altera_Forum
Honored Contributor II
3,492 Views

 

--- Quote Start ---  

Check Device Manager, you should see Jungo installed, but you should also see the A10 Reference board under the "Accelerators" group. 

 

You should also run "aocl diagnose" and see if that passes. 

--- Quote End ---  

 

 

hi,pnac 

i have install the driver successful, and i also can see Jungo intalled and the a10_ref board under "Accelerators" group. 

 

but when i invoke "aocl diagnose " ,the error message is printing “MMD INFO : [acla10_ref0] PCIe-to-fabric read test failed, read 0xffffffff after 

1 attempts 

 

Phys Dev Name Status Information 

acla10_ref0 Failed Board name not available. 

Failed initial tests, so not working as expected. 

Please try again after reprogramming the device.”  

 

could you give me some suggestion? 

thanks for any help
0 Kudos
Altera_Forum
Honored Contributor II
3,492 Views

Hi pnac: 

I have the same question at "aocl diagnose". I only can see Jungo intalled.How to got the "Accelerators group"for my arrira10. 

the path("D:\altera\15.1\hld\board")have no "a10_ref".How can I get it? 

 

0 Kudos
Altera_Forum
Honored Contributor II
3,492 Views

 

--- Quote Start ---  

Hi pnac: 

I have the same question at "aocl diagnose". I only can see Jungo intalled.How to got the "Accelerators group"for my arrira10. 

the path("D:\altera\15.1\hld\board")have no "a10_ref".How can I get it? 

 

 

--- Quote End ---  

 

 

you should download sof file to FPGA.  

and then reboot PC, you will see "a10_ref" under "Accelerators group"
0 Kudos
Altera_Forum
Honored Contributor II
3,492 Views

Hi, tiber, pnac, kevinjzw 

 

I know this post is a couple of months old, but I am having a similar problem on our side. Did you get the solution for this issue? 

 

In our case, I believe that the issue is with version id, it does not match. I greped this error and found the following in the file name acl_pcie_device.cpp 

 

// Kernel read command succeed, but got bad data. (version id doesn't match) 

ACL_PCIE_INFO("[%s] PCIe-to-fabric read test failed, read 0x%0x after %u attempts\n", 

m_name, version, iattempt); 

return -1; 

 

If you already have a solution for this please do let me know. Thanks.
0 Kudos
Reply