SDRAM strange problem!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDRAM strange problem!

Jump to solution
882 Views
behnamshakibafa
Contributor II

Hi everybody

I designed new PCB with exact same schematic with my avaluation board, but got in trouble with SDRAM.

the K4S511632 chip is used. I tried a test code. what I can see is that error in writing or reading with a constant pattern. I write data on all space, then the on reading, every 4 32bit data I read, one time has error and every time error is same. I wrote 0xBBCCDDEE and I read 0x0xBBCCBBCC!

Can any one help me on this?

     /* Writing */     
     for (i=0; i<SDRAM_SIZE/4; i++)
     {
       *char_wr_ptr++ = 0xEE;
       *char_wr_ptr++ = 0xDD;
       *char_wr_ptr++ = 0xCC;
       *char_wr_ptr++ = 0xBB;
     }

       /* Verifying */     
     wr_ptr = (uint32_t *)SDRAM_BASE_ADDR;
       for ( i= 0; i < SDRAM_SIZE/4; i++ )
       {
          if ( *wr_ptr != 0xBBCCDDEE )     /* be aware of endianess */
          {
                 /* byte comparison failure */
               err++;
          }
          wr_ptr++;
       }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Thanks

Behnam

Labels (3)
Tags (2)
0 Kudos
Reply
1 Solution
685 Views
avt
Contributor III

This forum is for LPC parts not Kinetis. Suggest that you post to a more appropriate forum.

View solution in original post

0 Kudos
Reply
2 Replies
685 Views
behnamshakibafa
Contributor II

Please help me on this dudes

0 Kudos
Reply
686 Views
avt
Contributor III

This forum is for LPC parts not Kinetis. Suggest that you post to a more appropriate forum.

0 Kudos
Reply