Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

How to program the elf file to Nios by MCU?

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.

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

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

    Thanks a lot!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 'Assignments->Device->Device & Pin Options...' 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