|
使用LM3S9D92访问SDRAM时出现的错误
SDRAM为64Mbit.
外部SDRAM起始位置为0x6000,0000访问时,只能访问到0x6000,bfff; 之后就出现如下错误
![](http://cache.amobbs.com/bbs_upload782111/files_52/ourdev_718296W0W7PN.jpg)
SDRAM错误 (原文件名:LUINFH40GF9EC3RE8[P3DKT.jpg)
使用的Finsh代码如下:
#ifdef RT_USING_FINSH
#include <finsh.h>
void sdram_read() //(char* start_pos, char* end_pos)
{
static volatile unsigned short *g_pusEPISdram;
unsigned long i;
unsigned long start_pos = 0, end_pos = 0x7fffff;
g_pusEPISdram = (unsigned short *)0x60000000;
rt_kprintf(" SDRAM Initial Data:\n");
for (i = start_pos; i <= end_pos; i++)
rt_kprintf(" Mem[0x%8x] = 0x%8x\n", LM3S_EXT_SRAM_BEGIN + i,
g_pusEPISdram[LM3S_EXT_SRAM_BEGIN + i]);
}
FINSH_FUNCTION_EXPORT(sdram_read, read more than one byte to the sdram );
#endif |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|