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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Is there any way to support version feature?

Altera_Forum
Honored Contributor II
1,639 Views

Dear all, 

 

Is there any way to put version information to a fixed address in FPGA configuration file and Nios' code? 

In our system, we created *.rbf for FPGA configuration file and stored it into Flash, when system reset, Control Micro would configurate FPGA by reading *.rbf from Flash to FPGA. We hope there is a way to store version information into a fixed location of *.rbf file.  

After finishing configurating FPGA, there exist a bootloader in onchipmemory, then the bootloader will read *.bin(Nios' code) from flash to SDRAM. Also, we hope there is a way to store version information into a fixed location of *.bin file. 

 

Anyone Help? 

 

Thanks in advance. 

David http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
763 Views
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Dear David! 

May be you create service request to Altera directly? 

Try it! It is more useful.
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Thanks slave... 

I have posted the SR. 

If any update, I will share with all my friends... 

 

regards, 

David
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Hi David, 

 

what stops you from attaching a custom header/trailer that contains all the info you need? 

Thats how we do it, apart from version info there is also an integrity check and 

compatibility (SW/FW/HW revision) information. Same goes for NIOS software. 

 

Cheers, Roger
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Hi Roger, 

 

Thanks for you reply. 

Could you kindly help me clarfy your method in detail? 

 

Thanks again, 

David
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Hi David, 

 

You could look at the mkimage source from the u-boot project as an example: 

 

http://cvs.sourceforge.net/viewcvs.py/u-bo...=1.17&view=auto (http://cvs.sourceforge.net/viewcvs.py/u-boot/u-boot/tools/mkimage.c?rev=1.17&view=auto

 

It adds a header that contains a timestamp & CRC-32 along with other information. 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Hi  

 

Try and have a look on the entry on JTAG usercode. This gives you a way to parse an rbf file for the 32- bit JTAG usercode info that is generated or specified from within quartus.  

 

http://forum.niosforum.com/forum/index.php?showtopic=3481 (http://forum.niosforum.com/forum/index.php?showtopic=3481

 

The method has only been tested for a ep1c6, but should provide a pointer.
0 Kudos
Reply