Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

NIOSII IDE Multiple source files

Altera_Forum
Honored Contributor II
1,314 Views

Is there an app note or instructions on using multiple source files in NIOS IDE?  

I have a project that uses multiple "C" files and assmebly files that I need to  

port over to NIOS IDE. This project was created using the earlier NIOS 3.0 version. 

 

I have tried using a makefile without any luck, if someone has a good working example 

I would be greatful for you help! 

 

Thanks in advance! 

Brandon http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
470 Views

I think you should start with the Tutorials, launch the IDE and choose Help->Welcome->Tutorials. 

 

Adding source files to a project is simple, one way you can do this is just drag the files from Explorer into your project, there are other ways. 

 

If you&#39;re porting a project from Nios 1.0 then you should read the app note "Upgrading Nios Processor Systems to the Nios II Processor" 

this is document an350.pdf which can be found in the altera\kits\nios2\documents directory. 

 

One thing to note though is that the instruction set changed when moving from Nios 1.0 to 2.0 so you will need to re-write your assembly files.
0 Kudos
Altera_Forum
Honored Contributor II
470 Views

Thanks for your help rugbybloke!! 

 

I did know how to add files to the project as you have suggested but the problem was, it would only compile 1 file and that was 

my main.c file. Come to find out that if a file name is in all caps like "MISC.C" then it will not compile that file even if it is in the project 

view. I found that it must be in all lower case text. After I changed all file to lower case all is well know http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Reply