Forum Discussion
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- 1. If your startup code copies the kernel into SDRAM, make sure you flush the data cache, invalidate the instruction cache, sync, then flush the pipeline. There's a little routine that does such below.[/b] --- Quote End --- Tried using that bit of ASM code. I am very green when it comes to ASM so I don't understand much of what you are doing there. The DCACHELINE_SIZE (aka NIOS2_DCACHE_LINE_SIZE) is set to 0 in the projects system.h file. When the code is executed the NIOS dies. Interrupts are disabled. <div class='quotetop'>QUOTE </div> --- Quote Start --- 2. Make sure interrupts are disabled.[/b] --- Quote End --- Check <div class='quotetop'>QUOTE </div> --- Quote Start --- 3. Make sure you have your stack setup.[/b] --- Quote End --- Huh http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif <div class='quotetop'>QUOTE </div> --- Quote Start --- Check the kernel startup code to make sure its relocation implementation isn't broken. I haven't looked closely at it yet, but some (new) implementations don't do this too well ... especially if there is an overlap of source and destination locations ;-)[/b] --- Quote End --- http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif I dunno what that is. Relocation implementation... wheres that??? Sorry that I am such a newbie at this. You clearly are not. Regards an upset GreateWhite.DK