Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Error generating SOPC Builder system after C2H acceleration

Hello all,

I have a problem using the NIOS II C2H Compiler.

I tryed to accelerate a function by right-click its name and selecting "Accelerate ...."

Then I selected the items "Build software, generate SOPC Builder system, and run Quartus II compilation" and "Use hardware accelerator in place of software implementation. Flush data cache before each call"

However, when I click "Build project" I get the following error:

--- Quote Start ---

Error: Can't create file C:/Workspace/BB_DVBC/FEC_NIOS.ptf

Error: System generation failed.

--- Quote End ---

If I click "Build project" again, I get the following message ....

--- Quote Start ---

**** Build of configuration Debug for project BB_DVBC_sw ****

make -s all includes

Creating generated_app.mk...

12.11.2009 12:46:22 - (SCHWERWIEGEND) generate: java.lang.IllegalStateException: java.lang.IllegalStateException: java.io.FileNotFoundException: c:\Workspace\BB_DVBC\software\BB_DVBC_sw_syslib\..\..\FEC_NIOS.ptf (Zugriff verweigert)

make: *** [/cygdrive/c/Workspace/BB_DVBC/software/BB_DVBC_sw_syslib/Debug/system_description/../obj/generated_app.mk-t] Error 1

Build completed in 2.75 seconds

--- Quote End ---

If I try to regenerate the SOPC Builder system using the SOPC Builder I get the same error as the first one ("Cant create file .... .ptf") and I have to use a backup to restore my files.

so apparently the ptf file is corrupted after the generation in the NIOS IDE...

does anyone have a solution or an idea what could be the problem ??

thanks in advance !

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This thread is over 2 years old but still no solution? I'm getting the exact same problem.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    just got it compiling...

    i deleted *.ptf* files, started SOPC builder, added my accelerator component from project subfolder and succesfully generated full project.next build in IDE was sucessfull;

    still, this accelerator has no effect on my system: data are unchanged...

    what am i doing wrong?

    --edit--

    i got it working. the problem was in wrong file system permissions.

    some c2h-generated files need them changed before sucessfull build.