SDRAM strange problem!

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SDRAM strange problem!

跳至解决方案
1,363 次查看
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

标签 (3)
标记 (2)
0 项奖励
回复
1 解答
1,166 次查看
avt
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,166 次查看
behnamshakibafa
Contributor II

Please help me on this dudes

0 项奖励
回复
1,167 次查看
avt
Contributor III

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

0 项奖励
回复