LOG_E("malloc failed"); } } MSH_CMD_EXPORT(sram_test, sram test) 编译烧写后我们使用定义的 sram_test 命令来进行内存堆的申请测试,测试结果如下。根据测试的日志信息我们可以看出系统复位后内存堆的空间为 183400 字节,我们设定的是每次申请 50KB = 51200 字节的空间,每次申请后打印出剩余的内存堆...
(sdram_address_list[section]+i) = i; } for(int i = 0; i < 8192*512; i+=512) { if(i != *(uint32_t *)(sdram_address_list[section] + i)) { result = 1; break; } } } if( result ) { printf("SDRAM test failed!\r\n"); } else { printf("SDRAM test success!\r\n"...
While the system boots up, the memory test failed. Our memory is in x16 configuration but the current code seems to test memory in x8 configuration. I have attached the debug log for reference. Please let us know if any specific changes are required in MRC or in SPD to detect the memory...
1.1 SDRAM数据存储基本原理 板子上的SDRAM型号为:MT48LC16M16A2P-6AIT,它的原理图如下:每个引脚的...
56//57//Test configured DLY value and find out min./max. values that will work58//59if(_TestSDRAM() ==0) {60//61//Test passed, remember min. DLY value if not done yet62//63if(Min ==0xFF) {64Min =Delay;65}66}else{67//68//Test failed, if a min. value has been found ...
On software side: I changed the COL ROW and BANK number (to 10,13,4), and the refresh time period to around 7us. All the rests are exactly the same as official reference. But very sadly, after several weeks debugging, my SDRAM writing/reading test is still not successful. Over the ...
printf("data is %x\n",i);if(0==TEST_SDRAM()) { printf("Test Failed!\r\n"); }elseprintf("Test Successed!\r\n");while(1); }/*** *函数功能:测试SDRAM; *入口参数:无; *出口参数: 测试正常,返回1,否则返回0 *注意:根据SDRAM的位宽修改nIndex...
Test Mode Test Mode用于配置SDRAM的工作模式。当它被配置为“00”的时候表示工作在正常模式,其它值是测试模式或被保留的设定。实际使用时必须配置成正常模式。 23.1.2.7.5. Write Mode Write Mode用于配置写操作的突发特性,可选择使用BL设置的突发长度(Burst write)或非突发模式(single write)。 23.1.2.7.6. ...
I tested my code ever on a sdram test board, which just has RT1176 and the sdram, and sdram can be read and written normally. And now I test it on my product board with complex function. Can the data error problem be related to the PCB routing or other hardware reason we can measur...
In my board, there has no frequency test-point, but I want to test the delay, how can I do? Translate 0 Kudos Copy link Reply Altera_Forum Honored Contributor II 07-06-2005 03:57 PM 657 Views I have solved my problem. I use PLL and try to set the Phase Shift Value...