Forum Discussion

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

.entry section and reset address

Hi,

I'm using eCos for Nios-II 1.1 on a custom board.

The reset address is in the epcs controller boot ROM.

The eCos startup type is set to ROMRAM.

The elf .entry section appears to be associated with the reset address ... always

... regardless if it makes sense or not. When testing via nios2-download it's a

minor annoyance ;-)

I'm currently just relocating .entry with objcopy -- not a big deal ... but I'd rather

find a convenient setting via the configtool. Is there such a setting?

Regards,

--Scott

1 Reply

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

    When using Nios II download from Nios II 1.1 it shouldn't matter that you have this extra section. It will try and write the .entry section to the boot address (i.e. the location of the EPCS) and ignore the fact it can't. However if you have upgraded to Nios II 5.0, then you will start to see problems. If this is the case then you should also upgrade eCos to the Nios II 5.0 version. This updated version will not generate the .entry section for a ROMRAM configuration.