Altera_Forum
Honored Contributor
19 years agoBoot problem : change exception address
Hello
I have some problem with NIOS software. I made a boot loader using on chip memory. Reset and application code are set in on-chip memory. Application is downloaded in SDRAM and when the transfert is done, there is a jump to the start address of my application. If I use a programm without interrupt, there is no problem. Whereas, when I want to use a programm using interrupt, I have some problem. First my binary file is too big, more than 32 MB. To generate my binary, i Use the following commands : [SOPC Builder]$ nios2-elf-objcopy -R.entry -O binary hello_world_0.elf test_oot_v7.bin I try to modify the exception , in the linker script, I remplace PROVIDE (__ram_exceptions_start = ABSOLUTE(.)); . = ALIGN(0x20); by PROVIDE (__ram_exceptions_start = 0x02007020); . = ALIGN(0x20); *(.irq) and I generate my binary as follow [SOPC Builder]$ nios2-elf-objcopy -R.entry -O binary --change-section-lma .exce ptions=0x02008020 hello_world_0.elf test_boot_v7.bin So my binary file is smaller, but when I load this application on Sdram, after booting, the interrupts are not treated. I suppose that my change is not affective. How can I do to change exceptions address? Thanks for all.