Forum Discussion

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

Quartus_project_dir

Hi there,

When I run as Nios II modelsim in Nios II EDS 9.1 sp2, I got the following error in Run Configurations window:

SEVERE: The Quartus II project location has not been set in the built ELF section. You can manually override this setting in the launch configuration's ELF file Advanced properties page.

I can get pass this error by clicking the "Advanced" button and manually entering my project location. Then process will go ahead and create the simulation files for me, only, with the following warning messages at the end:

WARNING: MEM_INIT_INSTALL_DIR not set. Set your QUARTUS_PROJECT_DIR environment variable.

WARNING: HDL_SIM_INSTALL_DIR not set. Set your QUARTUS_PROJECT_DIR and SOPC_NAME environment variables.

I have tried recreating BSP but it didn't help. Does anyone know what's broken in my project or evironment and how to fix it?

Thanks,

Hua

3 Replies

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

    What's weird is, if I switch to an old workspace and add the project again and regenerate the bsp, then it works again.

    Are those environment variables saved in workspace?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am having the exact same problem. I have spent about 2 hours trying to find where to set the QUARTUS_PROJECT_DIR and SOPC_NAME enviroment varibles all with no luck.

    does anyone have any idea on how to fix this problem. I am using the NIOS II 10.0 software build tools for eclipse.

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

    I set the QUARTUS_PROJECT_DIR as a Windows environment variable in Control Panel -> System -> Advanced system settings -> Environment Variables -> System variables. Eclipse would then automatically place a copy of my *.hex file into the quartus build location.