Forum Discussion

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

NIOSII IDE Multiple source files

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

2 Replies

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

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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