I am using a custom board with Blackfin BF518F processor interfaced with a 32MB SDRAM. The part number of SDRAM is MT48LC16M16A2 _75. I configured the EBIU registers using XML files as follows.
EBIU_SDBGTL = 0x80919989
EBIU_SDBCTL = 0x013;
EBIU_SDRRC = 0x0406
But when I am running my application (UART application) the program is encountering an exception with program sequencer showing the following values
SEQSTAT = 00002021
EXCAUSE = 0x21
IDLE_REQ = 0
SFTRESET = 0x01
HWERRCAUSE = 0x00
On doing step by step execution, I found that the exception occurred while application tried to fetch from memory location 0x0628. In the disassembly window the memory location 0x628 was showing illegal opcode.
Please guide me to solve this problem.