Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

quartus/Nios 13.1 make mem_init_generate error 255

Altera_Forum
Honored Contributor II
1,928 Views

I have a project created in nios 13.1 that I am trying to create a hex file for. 

 

From C:\altera\13.1\nios2eds I load the Nios II Command Shell.bat which loads the command shell  

 

Next i navigate to the project app directory and run: make mem_init_generate 

 

after the [BSP build complete] it tries to run bash -c 'elf2hex etc...' and gives an error 

 

make: *** [mem_init/file_RAM_on_chip.hex] Error 255 

 

When I do a mem_init_generate within nios 13.1 everything works. 

 

Also if i run the "make mem_init_generate" with the "C:\altera\13.0sp1\nios2eds" Nios 13.0 II Command Shell everything works (it is able to generate the hex file)  

 

what is causing the 13.1 command shell not to work properly? 

 

right now i have to install both 13.0sp1and 13.1 to get it to work http://www.alteraforum.com/forum//images/icons/icon8.png
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,039 Views

Ran into the same problem on linux. My normal shell environment was missing the QUARTUS_ROOTDIR variable. Setting it to C:\altera\13.1\quartus\quartus should get you going.

0 Kudos
Altera_Forum
Honored Contributor II
1,039 Views

I tried to set the QUARTUS_ROOTDIR via the "Nios II Command Shell.bat" file it gave the error 

 

C:\altera\13.1\nios2eds>"Nios II Command Shell.bat" QUARTUS_ROOTDIR_OVERRIDE="C: 

\altera\13.1\quartus\quartus" 

C:/altera/13.1/nios2eds/nios2_command_shell.sh: line 175: exec: QUARTUS_ROOTDIR_ 

OVERRIDE=C:\altera\13.1\quartus\quartus: not found 

 

I checked the folder and saw that it does not have a quartus folder within C:\altera\13.1\quartus 

 

--------------------------------------------------------------------------- 

Update,  

 

By deleting bin folder contents from C:\altera\13.1\nios2eds\bin and replacing it with the contents found in C:\altera\13.0sp1\nios2eds\bin I was able to get everything to work.
0 Kudos
Altera_Forum
Honored Contributor II
1,039 Views

Turns out this is a problem in 13.1 and can be fixed by adding this line to the .sh file export quartus_bindir=${quartus_rootdir}/bin 

 

see http://www.altera.com/support/kdb/solutions/rd11112013_614.html
0 Kudos
Reply