Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12596 Discussions

sopc-create-header-files : command not found ?

Altera_Forum
Honored Contributor II
6,632 Views

hi,  

 

iam an beginner in fpga soc....  

 

i try the tutorial "my_first_hps_fpga.pdf" .... 

 

so i have an problem to generate header files about embedded command shell...  

if i want to execute the bash-file ./generate.sh... 

 

generate.sh

# !/bin/sh 

sopc-create-header-files  

"./hps_fpga.sopcinfo"  

--single hps_0.h  

--module hps_0 

 

i get this message.. 

./generate.sh: Line 3: sopc-create-header-files: Commando not found...:oops: 

 

http://www.alteraforum.com/forum/attachment.php?attachmentid=12978&stc=1  

 

i hope somebody can help ... thx..
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
3,560 Views

I have the same error.. I'm trying to create the "sopc-create-header-files" with the sopc builder but my efforts have been unsuccessfully. If you have another clue how we can fix it, please tell me... thx..

0 Kudos
Altera_Forum
Honored Contributor II
3,560 Views

Using 16.1 on Windows 10 I was able to run that command using both the SoC and Nios II command prompts. That command is part of Quartus install and you can find the path here: <Quartus install directory>/quartus/sopc_builder/bin/sopc-create-header-files

0 Kudos
Altera_Forum
Honored Contributor II
3,563 Views

If anyone else is getting this error, I have figured out the solution. 

You have to set the PATH variable in the SoC EDS command shell 

 

The bin folder is located in the path: intelFPGA_lite\16.1\quartus\sopc_builder\bin 

you have to add this folder to the PATH environment in the SoC shell 

 

For example: 

PATH=/cygdrive/C/intelFPGA_lite/16.1/quartus/sopc_builder/bin:$PATH 

 

You have to change the path to the correct one in your PC ;)
Altera_Forum
Honored Contributor II
3,563 Views

 

--- Quote Start ---  

If anyone else is getting this error, I have figured out the solution. 

You have to set the PATH variable in the SoC EDS command shell 

 

The bin folder is located in the path: intelFPGA_lite\16.1\quartus\sopc_builder\bin 

you have to add this folder to the PATH environment in the SoC shell 

 

For example: 

PATH=/cygdrive/intelFPGA_lite/16.1/quartus/sopc_builder/bin:$PATH 

 

You have to change the path to the correct one in your PC ;) 

--- Quote End ---  

 

 

Hi, I have located the bin folder in my laptop. However, after I add this folder to the PATH environment, it still does not work. The same error occurs. I am using quartus 15.0 web version and my SoC EDS is 17.0 version. Not sure whether different version of quartus and SoC EDS is causing this problem...
0 Kudos
Altera_Forum
Honored Contributor II
3,563 Views

For linux : 

 

lauch the Altera embedded script shell 

type : $echo $PATH to display the PATH environment variable. 

To add a path to this variable, use the command :  

export PATH=$PATH:~/intelFPGA_lite/17.1/quartus/sopc_builder/bin 

 

 

You need to have Quartus installed in addition of the EDS suite.
Reply