Forum Discussion

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

Updating Eclipse Project Upon NIOS II System Change

What do you have to do to make projects in NIOS II Software Build Tools for Eclipse pick up on changes made to a NIOS II System in Quartus II/QSYS? I have changed and added components to my system in QSYS and can't figure out how to get projects to pick up on the changes in Eclipse. The System.h file gets updated with the new/changed components, but I am unable to use any of the constants that are created in that file. The only way I have found is to create a new project in Eclipse using the sopcinfo file. Is there a way to force an existing project to update?

13 Replies

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

    1. Initialize Eclipse workspace

    2. Create a new software project in the SBT

    Configure the Board Support Package

    Configure BSP Project Build Properties

    Add source code to the project

    Configure Application Project Build Properties

    Define Application Include Directories

    Compile, Download and Run the Software Project

    2. Verify the Board Connection

    3. Run the Software Project on the Target
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    1. Initialize Eclipse workspace

    2. Create a new software project in the SBT

    Configure the Board Support Package

    Configure BSP Project Build Properties

    Add source code to the project

    Configure Application Project Build Properties

    Define Application Include Directories

    Compile, Download and Run the Software Project

    2. Verify the Board Connection

    3. Run the Software Project on the Target

    -----

    --- Quote End ---

    Again, you missed the subject of the thread.

    The question was how to update nios ii eclipse project upon on modification in qsys and not to how to create new nios ii eclipse project (that is perfectly described in Nios II Classic Software Developer's Handbook).

    From my experience there are 2 cases:

    • with minor modifications in qsys

    • with major modifications in qsys

    With minor modifications (e.g. if there are no changes in qsys instantiation in the top module) it's quite simple: rebuild bsp (with modified .sopcinfo) and rebuild application.

    In the 2nd case (e.g. if qsys instantiation should be modified ... and probably also system interface (i.e. external ports)), the better approach is as follows:

    1. Qsys: Make modification in qsys and save it under new name

    2. Quartus: Instantiate new qsys in the top module (commenting former one), add it to the project and remove former one

    3. Quartus: In the top module adjust (if necessary) external ports

    4. Quartus: Compile new system and program device with modified .sof

    5. Eclipse: generate new bsp

    6. Eclipse: in application properties point to the new bsp

    This way the old system version is kept and can be easily "reincarnated"