FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5972 Discussions

Converting .sof to .flash in Nios II Command Shell

BigSid
Beginner
609 Views

I've got an Arria 10 GX FPGA Development Board (DK-DEV-10AX115S-A) and am trying to convert a .sof file to a .flash file for use with the board. I'm using Quartus Prime Standard 23.1.

I'm referring to these instructions to attempt to do that:

BigSid_1-1715106252862.png

Step 2 instructs to navigate to the .sof file while in the Nios II Command Shell. How is this done?

Without navigating, I've entered the Step 2 text but received this message when completed:

BigSid_2-1715106552825.png

No .flash file appears to have been created. 

How can I create a .flash file?

Any help would be appreciated - thanks.

Labels (1)
0 Kudos
15 Replies
aikeu
Employee
569 Views

Hi BigSid,


Can try to refer to the sof2flash function in the document below:

https://cdrdv2-public.intel.com/666773/ug_nios2_flash_programmer-683118-666773.pdf


Thanks.

Regads,

Aik Eu


0 Kudos
BigSid
Beginner
560 Views

Hi Aik Eu,

Thanks for the document. I 've read it but still don't understand the problem.

 

Would it be easier to generate the .flash file using the Nios II Flash Programmer GUI? I've tried to start the GUI from the Nios II Command Shell by following the instructions shown on page 9 of your document but get this:

BigSid_0-1715171121936.png

 

Any guidance would be appreciated - thanks.

0 Kudos
aikeu
Employee
520 Views

Hi BigSid,


You will need to source the Nios2_coomand_shell in your terminal then only can run the sof2flash cmd.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
517 Views

Temp75.png

Run the nios2_command_shell in the correct directory path in your terminal.

Then only run the sof2flash in your nios2_command_shell terminal in the correct directory path where your sof file allocated.

0 Kudos
aikeu
Employee
467 Views

Hi BigSid,


Do let me know if you have further question.


Thanks.

Regards,

Aik Eu


0 Kudos
BigSid
Beginner
457 Views

Hi Aik Eu,

 

I've opened the Nios II Command Shell from its installed folder. Do I also need to copy and paste my design's .sof file into that same folder to create a .flash file using the command shell? Please list the needed steps.

 

Thanks.

0 Kudos
aikeu
Employee
433 Views

Hi BigSid,


You do not need to copy and paste the .sof file into the same folder.

As long as Nios II command shell is enabled in your terminal, you will just required to go to the directory path with your project .sof file and execute sof2flash.


Thanks.

Regards,

Aik Eu


0 Kudos
BigSid
Beginner
418 Views

Hi Aik Eu,

 

Sorry, but I don't understand. The Nios II command shell is opened and I've entered the command to create a .flash file:

 

BigSid_0-1715771153764.png

The error "sof2flash: command not found" is given.

 

How do I go to the directory path with my project .sof file and execute sof2flash? I don't know what that means. Do I do that in the command shell? If so, how? How do I execute sof2flash?

 

I appreciate your patience here but I just got the development kit and have never needed to create a .flash file before.

 

Thanks.

0 Kudos
aikeu
Employee
345 Views

Hi BigSid,


I think there is some missing component in your environment setup which leads to the command not found. Can refer to the link below:

https://www.macnica.co.jp/en/business/semiconductor/support/faqs/intel/134526/


Thanks.

Regards,

Aik Eu


0 Kudos
BigSid
Beginner
164 Views

Hi Aik Eu,

 

I've added the .exe extension and now get this:

 

BigSid_0-1716296484348.png

 

I'm listing a valid .sof file for this design. Does it need to be in a certain folder/location for this sof2flash.exe command to work? If so, where?

 

Thanks.

0 Kudos
sstrell
Honored Contributor III
129 Views

Are you in the directory where the .sof file is located?  If not, you have to include the path to it in --input= or cd to where it is located before issuing the command.

0 Kudos
aikeu
Employee
115 Views

Hi BigSid,


Ya same according to SStrell comment, you will need to be in the directory of where your .sof file has been generated then only run the sof2flash command.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
60 Views

Hi BigSid,


I will closing the thread if no further question.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
40 Views

Hi BigSid,


As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


Thanks.

Regards,

Aik Eu


0 Kudos
BigSid
Beginner
6 Views

Hi Aik Eu,

 

I've put the .sof file into the same folder as the Nios II Command Shell.bat file.

 

Now I attempt to run the sof2flash.exe command and get this:

 

BigSid_0-1716988283858.png

 

Any idea what's happening now and how to proceed?

 

Thanks.

0 Kudos
Reply