Forum Discussion
Altera_Forum
Honored Contributor
13 years agoBoot code is just code that copies data from the boot device (in this case the EPCS device) and main memory.
An ELF program (as output by ld) has 'program headers' (run objdump -p) that make it very simple to load. To get C code running on the nios you need asm instructions to set %sp and %gp and then jump to the C function (don't call it main()). I've never had to access EPCS type memory - but it can't be hard!