Forum Discussion

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

Nios II basic

Hi,

I am a beginner .I am using Nios II development kit stratix II Ep2s60f672c3n. In the flash memory of board contains nios file.while power on file transfer to fpga...

It means can I directly program onto nios now??? that is using eclipse.

or I need to develop nios and programmed onto fpga using sopc builder?

please reply

7 Replies

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

    U have to build the FPGA system using SOPC/QSYS , the NIOS code to interact with the FPGA will have to be done using eclipse

    for ex : to transfer data from NIOS Console to DDR.

    U will have to create a system onchipmemory-DDR controller-DMA etc using SOPC/QSYS and synthesize to get an .sof

    then ur code to sent data to the write /read to the DDR will be a .c file which you have to build using eclipse and get an .elf

    U can flash both .sof n .elf and they would do the respective work.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    so first I have to port nios using sopc builder onto fpga. right?

    Thankyou so much...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I builded Nios using Qsys . generated successfully. but during compilation of nios block in quartus II tool I am getting an error message that

    "Error (12006): Node instance "inst" instantiates undefined entity "my nios"

    what will be the reason. please reply.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Is there really a space there? It shouldn't be a valid name. Your QSYs project should be called "my_nios" and not "my nios".

    When generating a system in QSYS, a .qip file is created, that tells Quartus what should be included in the FPGA project. Check that this .qip file is part of your project, and if not, add it (Project menu, Add/Remove files in project).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes sit thankyou.... I added .Qsys file to part of my project. now working.

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

    Hi,

    I have built nios. Now I am trying to program nios using eclipse.In built "count binary" c programming is using to check my nios. I assigned count_binary_o as my project name.

    while built project I am getting two errors.

    make: *** [count_binar_0.elf] Error 1 count_binar_0 C/C++ Problem

    undefined reference to `__alt_invalid' alt_sys_init.c /count_binar_0_bsp C/C++ Problem

    what will be reason ? please reply