Forum Discussion

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

SW loading to ECPS flash issue

Hi everyone,

I'm trying to program SW ELF image into ECPS flash - but not in the default manner, meaning not directly after HW image. I've read that it is posibble in the CFI image using ELF2FLASH params - but is it possible in ECPS flash when several of these params are disabled?

if it is possible, what shall I do in order for the SW to load to RAM from it's new location?

Thanks,

A.G.

2 Replies

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

    On the EPCS side of things, you could use elf2flash to generate a zero offset flash file and then move it wherever you'd like using objcopy (or nios2-elf-objcopy) with the --change-addresses option.

    On the bootloader side of things, you would have to at minimum change how the default bootloader functions. You have sources, so this shouldn't be too difficult.

    Good luck!

    - slacker