Forum Discussion
Newbie Question
Hello people,
I have a problem, I know it may seem basic but we all have to start somewhere. Cant get the HW design to work with the SW. I have generated a small system in SOPC builder and compiled it in Quartus. I am now trying to download a CORDIC programme on to the Nios II using the NiosII IDE. How do I use the address of the memory in the IDE programme that is created when SOPC has finished. Do I need to include the .ptf file that is generated? If so how do I do this. Or is it something to do with the system.h file, this is supposed to be generated by the SOPC builder also, no? I cannot find this system.h file at all. Any help would be greatly appreciated. Thanks, Ebbs http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ph34r.gif4 Replies
- Altera_Forum
Honored Contributor
The system.h is the interface between the SOPC System and your Nios Projects. In that you find the address of your components "suffixed" by '_BASE'. You can find this project in the Nios Project Directory after build it.
- Altera_Forum
Honored Contributor
Thanks for the reply.
I did build my project in the Nios IDE and also I have generated the system in SOPC and compiled it in Quartus but it still did not produce the system.h file. Any thoughts on why it would be doing this. - Altera_Forum
Honored Contributor
The system.h file resides in the System Library project associated with your user project. It will exist in a path like so:
A Nios II C/C++ application will not build without this, so it would be difficult (impossible?) to create such a project without one. - slacker<syslib>//system_description/system.h - Altera_Forum
Honored Contributor
Have you ever tried to clean your Nios Project and rebulid it? it can works. When you clean (option Clean...) a project all the files created in the build process are deleted (but the files created for you remain in the directory). Watch the terminator Nios II IDE window when a project is being bulding; the message "Generating system.h ..." normaly appears when you are buliding a project for the first time and when you alter some System Properties.
I hope I am not being redundant. Regards.