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++
12665 Discussions

Generating Flash Programming file using sof2flash

shauls
Employee
719 Views

Hi,

 

I am working with Agilex device AGIB023R31B1E1VB.
The FPGA is connected to to a QSPI Flash MT25QU02G.
I want to use an external programmer tool and understood that I need to use the sof2flash utility.
I run the following : sof2flash --offset=0x0 --input=standard.sof  --output=standard_cfi.flash

And I get the following error: file not found or not valid

The file exist and i am running the command under the correct directory.

Nov 12, 2024 3:25:57 PM com.altera.commandApplication.CmdApp severe
SEVERE: sof2flash: Input file, not found, or is not a valid SOF file.

Used the following version:

------------------------------------------------
Altera Nios2 Command Shell

Version 23.4, Build 79

 

My question:

Does Agilex SOF file conversion is supported?

Does MT25QU02G is supported in sof2flash command?

Are there any other ways to convert it?

 

Shaul

0 Kudos
1 Solution
khtan
Employee
526 Views

Hi Shaul,

 

From the sof2flash description, it will generate a s-record/srec file output

khtan_0-1731575349439.png

I saw that is one KDB on converting , but I'm not sure whether it supports your flash size density , but you can try if needed and change the EPCQ.

https://www.intel.com/content/www/us/en/support/programmable/articles/000077309.html

https://www.intel.com/content/www/us/en/docs/programmable/683689/current/nios2-elf-objcopy.html

 

Alternatively I was talking to our engineering, since niosII is obsolete and removed from newer Quartus Pro version, tools such as sof2flash & nios2-elf-objcopy also been removed , the recommended approach for programming SOF into QSPI is to use JIC file instead.

 

Thanks

Regards

Kian

View solution in original post

7 Replies
khtan
Employee
611 Views

Hi Shaul,

Thanks for contacting Intel Support Forums. I'm Kian and will be assisting in this case.

Please do allow me some time to check on the sof2flash and will revert back to you.

 

Thanks

Regards

Kian

0 Kudos
shauls
Employee
537 Views

Thanks Kian,

Meanwhile it looks like nios2-elf-objcopy command works with RPD file conversion.

Do you know what is the difference with sof2flash output versus nios2-elf-objcopy output.

I mean what is actually the file format output of sof2flash because I can have different format conversion with nios2-elf-objcopy.

0 Kudos
khtan
Employee
527 Views

Hi Shaul,

 

From the sof2flash description, it will generate a s-record/srec file output

khtan_0-1731575349439.png

I saw that is one KDB on converting , but I'm not sure whether it supports your flash size density , but you can try if needed and change the EPCQ.

https://www.intel.com/content/www/us/en/support/programmable/articles/000077309.html

https://www.intel.com/content/www/us/en/docs/programmable/683689/current/nios2-elf-objcopy.html

 

Alternatively I was talking to our engineering, since niosII is obsolete and removed from newer Quartus Pro version, tools such as sof2flash & nios2-elf-objcopy also been removed , the recommended approach for programming SOF into QSPI is to use JIC file instead.

 

Thanks

Regards

Kian

shauls
Employee
525 Views

Hi Kian,

Yes that's understood.

Using nios2-elf-objcopy can give the same output as sof2flash by using 'srec' format.

I know JIC is best to program the Flash by JTAG but we have another hardware option to implement Flash programming using external host (and I don't mean remote update) without involving the FPGA .

 

something like this:

 

shauls_0-1731577374077.png

 

So thank you for the information about sof2flash issue and obsolete nios2-elf-objcopy in the future.

 

Shaul

0 Kudos
khtan
Employee
288 Views

Hi Shaul,

Thanks for the reply , understood why you need the srec instead of using JIC.

If there is no further question related to the case , I will set this thread to community support.

 

Thanks

Regards

Kian

0 Kudos
shauls
Employee
271 Views

Hello Kian,

No further questions.

Thank You !

0 Kudos
khtan
Employee
204 Views

Hi Shaul,

 

I am glad that my answer able to help you on this issue, I will proceed to set this case to close pending. Thanks for using Intel Premier Support.  

 

If your Support Experience falls below Satisfied, I kindly request the opportunity to rectify it before concluding our interaction. If the issue cannot be resolved, please inform me of the cause so that I can learn from it and strive to enhance the quality of future service experiences.

 

Regards,

Kian

0 Kudos
Reply