关于RT-Thread访问SDRAM时的出错,求解
使用LM3S9D92访问SDRAM时出现的错误SDRAM为64Mbit.
外部SDRAM起始位置为0x6000,0000访问时,只能访问到0x6000,bfff; 之后就出现如下错误
http://cache.amobbs.com/bbs_upload782111/files_52/ourdev_718296W0W7PN.jpg
SDRAM错误 (原文件名:LUINFH40GF9EC3RE8
使用的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\n", LM3S_EXT_SRAM_BEGIN + i,
g_pusEPISdram);
}
FINSH_FUNCTION_EXPORT(sdram_read, read more than one byte to the sdram );
#endif 这个貌似是重复发贴。 回复【1楼】aozima
-----------------------------------------------------------------------
可能当时网慢,发了两次,不好意思
页:
[1]