Forum Discussion

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

NIOS II IDE question

Hello all,

I followed this tutorial step to step: http://fpga4u.epfl.ch/wiki/nios_ii_project

But when I am building the project, I am getting this error:

error: module cpu_0 (altera_nios2) not found in component directory (install.ptf)

this is everything i got as error:

creating generated_all.mk...

error: module cpu_0 (altera_nios2) not found in component directory (install.ptf)

nov 23, 2010 11:04:07 pm - (severe) generate: java.lang.illegalstateexception: java.lang.illegalstateexception: com.altera.ingenuous.gtfelement.gtfelementerrorexception: <error> element in gtf script

make: *** [system_description/../obj/generated_all.mk-t] error 1

build completed in 1.906 seconds

Can someone please tell me what I need to do?:(

3 Replies

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

    After you have generated the Nios system with sopc builder, you should find the <sopc_name>.ptf file in your project directory and the install.ptf file in a .sopc_bulder subdirectory. This applies to Quartus 9.0, but it is probably the same with 10.

    Then, when you create a new Nios IDE project, you have to enter the previous file int the target hardware box.

    Have you performed these exact steps?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, I got the .ptf file but I cannot find the install.ptf file. When I choose the file in the target hardware box, it automatically picks up the cpu for NIOS using that particular file, so I know thats right. What else could be the problem for the install.ptf to be missing?

    Also, as a side note, I created the NIOS II system and it also generates successfully.

    This is the report at the end of generation:

    # 2010.11.24 23:03:05 (*) completed generation for system: demo2.# 2010.11.24 23:03:05 (*) the following system items have been generated:

    sopc builder database : h:/ece576/trial/demo2.ptf

    system hdl model : h:/ece576/trial/demo2.vhd

    system generation script : h:/ece576/trial/demo2_generation_script

    hdl simulation directory : h:/ece576/trial/demo2_sim # 2010.11.24 23:03:05 (*) success: system generation completed.

    info: system generation was successful.

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

    I am getting a similar error while building the project. Could someone please help.

    Nios II Integrated Development Environment

    Version: 9.0

    Build: 132

    make -s all includes

    Creating system.h...

    Jan 16, 2014 9:52:10 PM - (SEVERE) generate: java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.NumberFormatException: empty String

    make[1]: *** [system_description/../obj/system.h-t] Error 1

    make: *** [system_project] Error 2

    Build completed in 25.825 seconds