This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Idling the C5501

Hi !

I am developing a firmware  on the C5501, and trying to implement the Idle mode (using Idle Processor and EMIF)

my problem, is that after weckup from idle the SDRAM  contain no more it's actule Program.  

and hier you found code i use

/////////////////////////////////////////////////////////////////////// 

pMMR->ifr0 = 0xFFFF;
 pMMR->_ifr1= 0xFFFF;
 pEmif->sdc1 |= 0x001; // Active the self refresh mode
 pEmif->sdc2 &=0xFDFF; // RFEN=0, to prevent from issuing auto refresh

 *(ioport volatile unsigned int *)0x9400 = 0x1000;
 *(ioport volatile unsigned int *)0x0001 = 0x09; 
  asm(" IDLE "); 


 pEmif->sdc1 &=0xFFFE; //exit the self refresh mode
 while ( pEmif->sdc1 & 0x1);  // wait untel selt refresh is finish
 pEmif->sdc2 |=0x0200 ; // RFEN=1
 
///////////////////////////////////////////////////////////////////////

 

what am I doing wrong here? any suggestions to make it work? 

thank you in advance,

 

Amar