Forum Discussion
Switching newer NIOS II versions
- 5 years ago
I just found out a fix for switching versions!
While working on a python project, I found out how to access Environment Variables in Windows.
In Win10 Start Menu, go to View Advanced System Settings. In that window there is an option to view Environment Variables. I re-directed the NIOS II to point to the 9.2 version and I can run the batch file like usual.
However I have a new error. Now I get an error that tells me that it "can't execute a binary file".
Hi BB!
I have attached the Batch file that we execute to get the programming setup open and a bashrc file that the Batch file is looking for.
When ever I would run it, even on the XP, it gave me an error on the first line saying it was an invalid command, so I was playing with a copy and was able to get rid of the error by using "set". The copy is in there too.
Part of the problem might be that I don't think 9.1 was installed by an installer on the Win10. I think someone copied over the files and it is able to run but the OS doesn't recognize it as an installed program. The XP computer has 9.1, 11 and 12.1 installed where the Win10 has 11 and 12.1 officially installed with the 9.1 files present.
I have checked the environment variables and they point to the 11 version. I have tried to point the environment variables but none of it seems to stick.
The Altera Tool that I was talking about is called "Altera_Tool_Switch". It looks like it is supposed to change the appropriate environment variables to the tool you want to use. It originally only had support for versions 6.0 to 7.2 so I tried to tack on support for 9.1 and 11.0. That is also attached.
Thank you very much for the help!
-Andrew
So I just had something interesting happen. I wanted to get you more information because this whole setup uses a nios kit. When I went into the kit, there is a batch file called "Nios SKD shell.bat" when I run this, it keeps me in version 9.1!
For your information it is an Altera Nios development kit version 3.20 build 18.
However the command that we need to run still doesn't work. It tells me that the command is not found.
The command that we use is "nr -x "c:\file.germs"". This is supposed to invoke a nios-run command and start downloading the file.germs over COM1 to the target Cyclone FPGA.
This issue is slightly off topic from my initial question though.
- pdi_eng5 years ago
New Contributor
I just found out a fix for switching versions!
While working on a python project, I found out how to access Environment Variables in Windows.
In Win10 Start Menu, go to View Advanced System Settings. In that window there is an option to view Environment Variables. I re-directed the NIOS II to point to the 9.2 version and I can run the batch file like usual.
However I have a new error. Now I get an error that tells me that it "can't execute a binary file".