Forum Discussion

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

NIOS Execute in place from EPCS flash

Hi,

I am trying to load the NIOS code into EPCS and execute from EPCS. After compiling the code in Eclipse. I am getting the following error.

address 0x3e09f88 of nios_hdmi.elf section `.text' is not within region `epcs_flash_controller_0'

When I see the EPCS size it shows 2016 bytes. I have no idea how to increase the size of EPCS in Qsys.

Can anyone help me on this?

Thanks

Karthik

2 Replies

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

    Hi,

    I don't recall there is an option to define EPCS size in Qsys.

    If you are executing-in-place from EPCS, very unlikely your .elf will exceed the EPCS size, unless your application is really huge, or your EPCS is relatively small.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can't execute your code in place from the EPCS. The epcs_flash_controller_0 region is a ROM memory containing a bootloader that will copy your code from the EPCS into the main RAM. If you want to avoid that the only other solution I can think of is to implement an on-chip ROM in the FPGA but it will use resources.