Altera_Forum
Honored Contributor
19 years agoProgram entry point
hello
we are using nios ii 5.1. we are had create a custom bootloader for remote firmware updates via custom interface (no jtag cable will be available on fw update process). previosly, in nios1, there was the bootloadder, but as we are know, altera does not recomend to use the legacy components so we are had created custom bootloader. boot loader must to know entry point of main program. but, after compiling a program for memory, that differ to boot address, compiler does NOT make any code at offset address 0 for target memory. hex file starts from exception offset address 0x20. but program entry point is somewhere in targed memory and that address included in resilting hex file as 0x05 record type. why it doesnot make from offset address 0? and is it possible to change some setting to make the compiler to generate entry point at address 0?