SECTION 4 - Running host code [Q_4-1] Error when running host code Code: FAILED to read auto-discovery string at byte 16: Expected version is 13, found 11 [S_4-1] Solution: The flash content does not match the aocx version the host code is using (13.1 to 14.0 R001.001.0001). The flash must be reprogrammed with the "aocl flash..." command. Feel free to post updates below and I will update this article with new content. Thanks, Gigi Edits: 10/01/2014 - Add clarifications about permissions issue (scripts in libexec folder must have +x permissions) 10/01/2014 - Add Q_3-3 & its solution 10/03/2014 - Add Q_2-5 & its solution 10/20/2014 - Add Q_4-2, Q_4-3, Q_4-4 & their solutions 10/30/2014 - Add Q_2-6 & its solution Last edited by gigi; October 15th, 2015 at 06:46 AM. Reason: Display sections at the top of article Reply With Quote Reply With Quote October 20th, 2014, 03:08 PM #2 gigi gigi is offline Altera Scholar Join Date Jul 2013 Posts 48 Rep Power 1 Default Re: Nallatech OpenCL BSPs - troubleshooter SECTION 2 - aocl utilities Issues [Q_2-6] Error when running host code Code: Error: quartus_cpf failed at ... flash_recovery.pl line 89. [S_2-6] Solution: Add the %QUARTUS_ROOTDIR%\bin64 folder to the PATH environment variable. SECTION 4 - Running host code [Q_4-2] Error when running host code Code: Unrecognised card type, so can't instantiate appropriate Flash/UFM/UCD classes! [S_4-2] Solution: The flash content does not match the aocx version the host code is using (update 14.0 R001.002.000x). The flash must be reprogrammed with the flash_recovery.pl script with the appropriate base.aocx design (no other design should be programmed in flash). The flash_recovery.pl script requires the JTAG programming cable to be connected to the board. Once the board has been updated to R001.002.000x, later flash update can be done through PCIe using the "aocl flash acl0 base.aocx" command. [Q_4-3] Error when running host code Code: failed to program the device through CvP MMD INFO : executing "quartus_pgm -c 1 -m jtag -o "P;reprogram_temp.sof@1"" Error (213013): Programming hardware cable not detected Error (213013): Programming hardware cable not detected Error (213013): Programming hardware cable not detected mmd program_device: Board reprogram failed MMD FATAL: acl_pcie.cpp:58: can't find handle -1 -- aborting [S_4-3] Solution: The MMCONFIG option has to be enabled in order to get the PCI vendor specific extended capabilities (VSEC) to be read; VSEC is required by the PCIe OpenCL driver. Two possible ways forwards are: Verify the kernel has been built with the CONFIG_PCI_MMCONFIG=y option Verify the bootloader is not disabling the MMCONFIG option when loading the kernel (for example in grug, "pci=nommconf" should not be added to the kernel loading command) [Q_4-4] Error when running host code Code: MMD INFO : [acl0] New FPGA design has different periphery from programmed design. MMD INFO : [acl0] Reprogramming device through Flash with RBF file... MMD INFO : [acl0] done. MMD INFO : Updating Flash boot sector... MMD INFO : done. MMD INFO : [acl0] Reconfiguring FPGA from Flash device, partition 1... [S_4-4] Solution: The aocx user design has an incompatible periphery with the base.aocx design in flash. The aocx user design was compiled with Altera Tools 14.0.x Update 1 or Update 2 without the Nallatech periph_hash_update patch. Download the patch and recompile the aocx user design after the patch has been applied to the BSP installation.