Forum Discussion

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

Error error error...IDE

"The software settings (STF) file associated with this project is damaged. This may be fixed by copying your source files into a new C/C++ application project. For more details see the error log." The above message was kept appearing when i try to open a new C/c++ application for my own blank project with a ptf file. Someone plz help me, i'm a new user of this program,i can't even start my programming.Thank you.

8 Replies

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

    While I don't know the cause of your problem, perhaps I can offer some information that will help you find the answer.

    There are two ".stf" files for any given project. The "application.stf" file resides in your application directory.

    The "system.stf" file is located in the folder containing your system library. It contains information the system libary and application need for compilation.

    Both of these files are actually XML files. I've never seen one become corrupt though. Did you perhaps relocate your application files to a different folder on your computer after creating the project? One of the items found near the top of the "system.stf" file is the location of your SOPC builder generated PTF file.

    The "application.stf" file is usually pretty bare. As an example, here is what mine looks like for a specific project:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <stf>
    	<project sdk="trio_top_syslib" target="Nios II Application">
    	</project>
    </stf>

    Not very interesting as all it does is call out the system library associated with the application.

    What the error message is telling you to do is basically wipe out your application and start over. Of course you don't want to lose any source files you've written so you want to copy those over to your new application.

    If you can't create a new application without getting this error, then I would suspect and investigate the following in order:

    1 - Incomplete software installation. Did you just install the software? Have you rebooted? You may need to check the environment variables to see they were set up properly. Did you install all of the software (IP, Quartus, NIOS IDE)?

    2 - Is there something wrong with your SOPC system itself that would feed through into the PTF file? Try creating an application using one of the example systems provided with the installation (C:\altera\80\nios2eds\examples\verilog).

    Hope this helps some,

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

    I'm getting the same problem with quartusII 8.0sp1 and niosII 8.0sp1. The software installation is complete, and I tried using example systems to see if that would work, alas to no avail.

    I get this in the application stf file, which is supsect may be the problem:

    
    <?xml version='1.0' encoding='UTF-8'?>
    <stf>
        <project
            target="Nios II Application"
            sdk="none">
        </project>
    </stf>
    

    Can you shed any light on this?

    --- Quote Start ---

    While I don't know the cause of your problem, perhaps I can offer some information that will help you find the answer.

    There are two ".stf" files for any given project. The "application.stf" file resides in your application directory.

    The "system.stf" file is located in the folder containing your system library. It contains information the system libary and application need for compilation.

    Both of these files are actually XML files. I've never seen one become corrupt though. Did you perhaps relocate your application files to a different folder on your computer after creating the project? One of the items found near the top of the "system.stf" file is the location of your SOPC builder generated PTF file.

    The "application.stf" file is usually pretty bare. As an example, here is what mine looks like for a specific project:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <stf>
        <project sdk="trio_top_syslib" target="Nios II Application">
        </project>
    </stf>
    Not very interesting as all it does is call out the system library associated with the application.

    What the error message is telling you to do is basically wipe out your application and start over. Of course you don't want to lose any source files you've written so you want to copy those over to your new application.

    If you can't create a new application without getting this error, then I would suspect and investigate the following in order:

    1 - Incomplete software installation. Did you just install the software? Have you rebooted? You may need to check the environment variables to see they were set up properly. Did you install all of the software (IP, Quartus, NIOS IDE)?

    2 - Is there something wrong with your SOPC system itself that would feed through into the PTF file? Try creating an application using one of the example systems provided with the installation (C:\altera\80\nios2eds\examples\verilog).

    Hope this helps some,

    Jake

    --- Quote End ---

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

    Same issue here.

    I have QII 8.0sp1 and Nios II 8.0.

    There is another message that comes up after I click "build all" again that says something about an unknown Java protocol....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've had the same problem. My solution was to create a new project at another directory. A precaution I used was to avoid spaces in paths. Probably silly but if nothing else works it is worth a try.

    Best Regards,

    Ola Bångdahl
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Bango is right. As soon as I moved my projects from 'My Documents' to another folder with the path without spaces, it worked.

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

    I'm pretty sure I recall from my NIOS class, the instructor telling us you will get all kinds of weird errors if your directory path has spaces in it. Nonobvious error returns too. I haven't done a NIOS project in a while but I generally keep my own folder with no spaces for working with projects in general. Underscores are ugly but they work! (and make scripting in general easier)

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

    I also encountered this problem, it is because you kept the code name of the folder is not correct, it can only be a folder name in English letters and numbers.

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

    are you able to solve the .stf file error in nios?

    if yes then please tell me how you solved it.

    i also have the same problem.

    please give me reply.