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

How to program the elf file to Nios by MCU?

Altera_Forum
Honored Contributor II
2,053 Views

Hi, 

 

In our design, we use the mcu to programming the fpga, and fpga has no flash connected to it. 

So,Could I program the elf file to Nios by mcu? 

 

Thanks.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
907 Views

Hi, 

 

Does it is possible to download the elf file to the FPGA(configed with Nios core) by a mcu directly? 

 

Thanks a lot!
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

confused. 

 

[In our design, we use the mcu to programming the fpga, and fpga has no flash connected to it.] 

Where does your configuration data locate? On PC or on your board? Do you download by using a cable? 

 

[Does it is possible to download the elf file to the FPGA(configed with Nios core) by a mcu directly?] 

Do you mean you want to download elf to on-chip memory? ELF shall be copied to SRAM or SDRAM for executing and shall not be downloaded to FPGA, I think.
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

Hi, Thank you for you reply! 

 

MCU has flash which store the configration data.  

 

So after the fpga configed with the NIOSII core, Does it possible to upload the elf file to FPGA by the MCU? 

 

Thanks a lot! 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

hxdzjk, 

 

Altera provides a detailed handbook how this could be done: 

... see alteras: configuration handbook (http://www.altera.com/literature/lit-config.jsp

In Quartus &#39;Assignments->Device->Device & Pin Options...&#39; you can configure to get a Raw-Binary-File which can be sent to FPGA in a serial manner (passive serial configuration) to configure your FPGA after power-on by a MCU. 

If you add internal ROM and RAM you can also write your own boot loader to receive then the firmware from your MCU and stores it in its System-RAM. 

 

Mike
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

Mike, Thank you very much! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif

0 Kudos
Reply