Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSlacker,
I think there is a mistake here : What I want :- generate an elf file of my software with nios2-elf-objcopy
- concatenate to this srecord some other lines (things to write to some addresses in the system), also in srecord format
- take this combined file to use with nios2-download : works great
- also use the same file for putting in the epcs to be able to use the board without jtag connection
- create a flash file for the sof : sof2flash ok
- create a flash file for the software : elf2flash ok
- program these two with the flash programmer : ok
- BUT : the extra initialisations I want in the boot process is not available.
- the elf2flash creates an image for the processor system : data x must go on address y... (this data is also in the srecord if generated with nios2-elf-objcopy, see above)
- all (x,y) data is packed as information for the bootloader (where to write content) : call it BOOTDATA
- the BOOTDATA is packed in an srecord file to instruct the flash programmer where to program DATA in the EPCS. so the address information in this srecord is not related to BOOTDATA in any way
- the bootloader in the epcs sopc component handles BOOTDATA, decodes the records and uses (x,y) for initialising memories...