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