Forum Discussion

NPund's avatar
NPund
Icon for Occasional Contributor rankOccasional Contributor
6 years ago
Solved

Stratix10 Hello_world hanging

Hi,

I followed all the steps specified by Terasic for the device 1SG280HU2F50E2V).

Flashed the top.sdf in user region and is successfully identified by aocl diagnose.

but when I try to do

aocl program acl0 hello_worl.aocx, It gets stuck while programming.

I checked the kernel module code and its getting stuck in while loop

In aclpci_pr.c

// Wait for PR complete

status = ioread32(aclpci->bar[ACL_PRCONTROLLER_BAR]+ACL_PRCONTROLLER_OFFSET+ALT_PR_CSR_OFST);

ACL_DEBUG (KERN_DEBUG "ALT_PR_CSR_OFST status is 0x%08X", (int) status);

while(status != ALT_PR_CSR_STATUS_PR_SUCCESS)

{

msleep(100);

status = ioread32(aclpci->bar[ACL_PRCONTROLLER_BAR]+ACL_PRCONTROLLER_OFFSET+ALT_PR_CSR_OFST);

ACL_DEBUG (KERN_DEBUG "ALT_PR_CSR_OFST status is 0x%08X", (int) status);

};

I checked the dmesg It is showing this error code.

dmesg output

[ 219.116119] aclpci_pr (185):

[ 219.116123] ALT_PR_CSR_OFST status is 0x00000004

[ 219.116127] aclpci_pr (190):

[ 219.116129] Size of PR RBF is 0x00C5D000

[ 244.460182] aclpci_pr (208):

[ 244.460185] Number of 4K chunks written: 3165

[ 244.460188] aclpci_pr (209):

[ 244.460190] Number of bytes in PR bitstream remaining: 0

[ 244.460196] aclpci_pr (235):

[ 244.460198] ALT_PR_CSR_OFST status is 0x00000008

[ 244.568183] aclpci_pr (240):

[ 244.568187] ALT_PR_CSR_OFST status is 0x00000008

[ 244.676183] aclpci_pr (240):

[ 244.676188] ALT_PR_CSR_OFST status is 0x00000008

I removed while loop and recompiled kernel module so that module doesn't hang but I don't understand what is the problem here while programming the PR.

Thanks,

5 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    I will investigate your request and let you know my feedback.

    In the mean time, may I know which BSP did you use?

    Did you do any customization?

    Thanks

    • NPund's avatar
      NPund
      Icon for Occasional Contributor rankOccasional Contributor

      Hi,

      These are the details;

      OS - Ubuntu 16.04 LTS

      BSP - DE10-Pro (1SG280HU2F50E2V) BSP for Intel OpenCL 18.1.1 provided by Terasic on their website.

      aocl version - aocl 18.1.2.277 (Intel(R) FPGA SDK for OpenCL(TM), Version 18.1.2 Build 277 Pro Edition, Copyright (C) 2019 Intel Corporation)

      Quartus Prime Pro version - Quartus Prime Version 18.1.2 Build 277 02/12/2019 SJ Pro Edition

      And No I didn't do any customization.

      I also tried to compile the aocx hello_world file from scratch. I got this error from aoc

      Error (119013): Current license file does not support the 1SG280HU2F50E2VG device. Go to the Self-Service Licensing Center on the Intel FPGA website to manage your licenses (https://mysupport.altera.com/AlteraLicensing/license/index.html).

      Error: Quartus Prime Fitter was unsuccessful. 1 error, 1 warning

      Error (23035): Tcl error:

      Error (23031): Evaluation of Tcl script compile_script.tcl unsuccessful

      Error: Quartus Prime Compiler Database Interface was unsuccessful. 2 errors, 0 warnings

      Error: Compiler Error, not able to generate hardware

      Even though I have Quartus Prime Pro license.

      Thanks,

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    it seems like a licensing issue.

    Is your License valid for Quartus Pro version?

    Thanks

    • NPund's avatar
      NPund
      Icon for Occasional Contributor rankOccasional Contributor

      Yes, I have Quartus Pro license. But don't know if it supports all Stratix10 devices, which technically it should right?

      I also contacted the licensing team, they said to seek help from the forum.