I have now realized... the program that inits the iCACHE is the eCos initialization code, which executes AFTER the program has been copied to RAM. So the iCACHE initialization are not the 8 first instruction (as the software guide says).
Also I have remembered that the program that copies the code from ROM to RAM is the one added to my original code that generates automatically the altera_nios2 development kit: "boot_loader_cfi.srec". I use it with "elf2flash" in order to generate my flash file to write to flash.
Any other way to do it and ensure that the iCACHE initalization is correct? In the niosI kit, I had the original code of the boot_loader, so I was able to modify it, but now I only have the srec, and can't do it....
Any help would be appreciated.
aLeX