Reset and exception handling on SDRAM

Re: Reset and exception handling on SDRAM

by Sahand Kashani-Akhavan -
Number of replies: 0

Hi,

If you are getting similar measurements with the onchip memory and the sdram, you are not placing the reset and exception vectors in the place you think.

You can not edit the system.h file with the reset vector address and expect the CPU to magically jump to it when it receives an interrupt/exception. The reason is that the CPU needs to know what this address is at hardware compile time since it is a constant it stores internally and to which it jumps immediately once it sees an interrupt. Software has no way of setting such a value.

If you want to set what the reset/exception vector addresses are, you need to look in the "Vectors" tab of the Nios CPU in Qsys. Over there you can define what memory these two vectors correspond to. It's highly possible they are currently pointing to the memory you don't want to use.