Altera_Forum
Honored Contributor
11 years agoUsing a bootloader for NIOS II, nios2-elf-objcopy creates very large object file
Hello,
I've an NIOS II application builded via the command line tools. I've now decided to run the program from the onchip_mem instead from the flash. Reading the AN458, it is clear that the .text and .rodata has to be set to the onchip_mem and the reset vector has to point to the flash. If I made these changes, the nios2-elf-objcopy creates then an binary output file which is 258 MB. Without the bootloader, this is only 25 kB. The elf-file is always 390 kB (regardless where the .text and .rodate are placed). I'm using Quartus 14.1 for building the application; FPGA is a Stratix IV. Maybe someone can help how I can debug this or any idea why the binary gets so large? Best Regards, Bernd