AnsweredAssumed Answered

Accessing SDRAM Blackfin

Question asked by hacke on Jun 6, 2018
Latest reply on Jun 12, 2018 by Kader.M

Hello

 

I have problem accessing external SDRAM on at TCM-BF537

I get this error

 

A non-recoverable error or exception has occurred.
Description: A data CPLB miss has occurred without a corresponding CPLB entry.
General Type: RunTimeError
Specific Type: DCPLBMissWithoutReplacement
Error PC: 0xffa009a4

 

This is samplecode to get the error


#define pSDRAM_START ((volatile unsigned short *)0x04)

 

int main(int argc, char *argv[])
{

   *pSDRAM_START = 10;
    return 0;
}

 

I have added my own customBoard.xml that configures the settings in 

the External Bus Interface Unit to

<custom-register-reset-definitions>
<register name="EBIU_SDRRC" reset-value="0x0817" core="Common" />
<register name="EBIU_SDBCTL" reset-value="0x0013" core="Common" />
<register name="EBIU_SDGCTL" reset-value="0x0091998d" core="Common" />
<register name="EBIU_AMGCTL" reset-value="0xff" core="Common" />
</custom-register-reset-definitions>

 

Exactly as it was configured in VisualDSP++ IDE

 

I have tried different ways to access the SDRAM but always get this exception

 

I can change the values in SDRAM using Memory Browser in the CCES, so 

i am always certain that the memory is correct configured

 

Any suggestions, in any direction will help

 

best regards

  Håkan

Outcomes