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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

SW loading to ECPS flash issue

Altera_Forum
Honored Contributor II
1,287 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
605 Views

You need a custom bootloader. an458 (http://www.altera.com/literature/an/an458.pdf) can help you.

0 Kudos
Altera_Forum
Honored Contributor II
605 Views

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
0 Kudos
Reply