Forum Discussion

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

NIOS II Tutorial Problems

Hi, I did some searching on my problem but could not track down an answer hence the need to post here,

I have been working through the Nios II Hardware Development tutorial and have run into two snags.

I am using Quartus II 10.1Sp1 and Nios II Eds 10.1

On page 1-28 NiosII EDS the tutorial tells me to use the Create New NiosII Application and BSP from template option to create the source code.

In the dialog box I enter the name 'count_binary', and select the template file 'count_binary' as instructed. However when I click finish, only the bsp project appears in the left hand column, not the actual count_binary application.

If I inspect the design files folder, then a 'software' directory has been created and both the count_binary and count_binary_bsp directories have been created. I don't know why the 'count_binary' project is not being added automatically.

To fix this problem I added the 'count_binary' application manually.

When I then try to proceed with the tutorial by right clicking on the the count_binary application and selecting build project I get two errors:

1)make:***[count_binary.elf] Error 1 count_binary line 0

2)undefined reference to 'main' alt_main.c line 154

I suspect that this might be related to the fact that the NiosII EDS did not correctly create the project in the first step, but I have not found much help on the situation.

Hopefully someone here knows what might be going on.

Thanks

13 Replies

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

    SOLVED for Windows 7: you have to lauch NIOS II as administrator. Right click on the icon on the desktop and select "Run as administrator".

    I too was going nuts trying to everything as suggested above but couldn't get the non-bsp folder to appear in the project navigator. What tipped me off to the solution was reading throught the console messages. Even that was a trick since when the script is finished you don't get the full text that was flashing through the console. You have to click and select the right console messages. Reading through it showed creating the DE1_count_binary_bsp folder and files but when it went to create the DE1_count_binary folder, some sort of access denied message appeared and then the script finished. Hmmm, access denied sounds like a Windows 7 thing. Bingo.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi all,

    All right, now!!!

    "Run as administrator" was the solution of this problem. I clicked in this option and the project has executed normally. Both folders (count_binary and count_binary_bsp) appears and the application runs.

    When I asked for the support about the license, he told me it was not necessary to the example.

    Thanks very much!!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    HI,

    I am sorry for not being available.I got busy with other work.

    Yes one has to make sure that all the files you run have admin rights , in quartus or in sopc builder or in eclipse.When you in the IDE of eclipse you cannot delete the metadata.And once metadata is deleted you have to create new template and redo the whole proceedure.

    I hope it helps!!