Hi Cris,
I think I have maken some progress. I forget to associate the hex file to the boot_rom in the Qsys, because the AN458 doesn't tell me to do it. I also managed to compile the small_boot_copier.s with Quartus 11.0.
Now, the performance of my board is. The hw boot normally, then the sw image is copied. Then the hw lost. I checked the binary file of the my sw, and I found the destination address(2nd 4 bytes) is set to 0x1000, which is the cpu address.
I have checked the bin file of the sw before, the destination address is set to 0x200020.
My nios address is:
cpu 0x1000
sram 0x200000
boot_rom 0x1c00
epcs 0x0
I also set the reset_vector to 0x1c00, and exception vector to 0x200020.
In Nios2 SBT, the bsp editor showes all the linker section are pointing to sram, except .entry to boot_rom.
Do you know where to set this destination address?
Thank you very much. Please forgive me for my bad english.
Derek