This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
关于C6678的DDR3测试(基于Keystone1_Memory的Memory_Test例程)
1、测试中出现以下错误,但其他测试都正常,什么原因导致?(测试结果详附件)
Memory Test fails at 0x80000000, Write 0x8000000480000000, Readback 0x8000200480002000
Memory Test fails at 0x8fffac78, Write 0x8fffac7c8fffac78, Readback 0x8fff8c7c8fff8c78
更改KeyStone_external_memory_test(DDR_TEST_START_ARRD, DDR_TEST_START_ARRD+256*1024*1024, 1)为KeyStone_external_memory_test(DDR_TEST_START_ARRD, DDR_TEST_START_ARRD+1024*1024*1024, 1),错误如下
Memory Test fails at 0x80000000, Write 0x8000000480000000, Readback 0x8000200480002000
Memory Test fails at 0xcfffac78, Write 0xcfffac7ccfffac78, Readback 0xcfff8c7ccfff8c78
2、关于DDR3的存储空间访问
修改哪些地方可以测试2GB-4GB的存储空间?所选DDR3芯片为H5TQ8G63AMR。
Initialize DSP main clock = 100.00MHzx10/1 = 1000MHz Initialize DDR speed = 100.000x40/3= 1333.3 Memory Test Start at 1071329357563 cycle Set 32KB L1P, 32KB L1D, 0KB L2 External memory test at 1071329368910 cycle Passed Memory Fill Test from 0x80000000 to 0x90000000 with pattern 0x 0 Passed Memory Fill Test from 0x80000000 to 0x90000000 with pattern 0xffffffffffffffff Passed Memory Fill Test from 0x80000000 to 0x90000000 with pattern 0xaaaaaaaaaaaaaaaa Passed Memory Fill Test from 0x80000000 to 0x90000000 with pattern 0x5555555555555555 Memory Test fails at 0x80000000, Write 0x8000000480000000, Readback 0x8000200480002000 Memory Test fails at 0x80000008, Write 0x8000000c80000008, Readback 0x8000200c80002008 Memory Test fails at 0x80000010, Write 0x8000001480000010, Readback 0x8000201480002010 Memory Test fails at 0x80000018, Write 0x8000001c80000018, Readback 0x8000201c80002018 Memory Test fails at 0x80000020, Write 0x8000002480000020, Readback 0x8000202480002020 Memory Test fails at 0x80000028, Write 0x8000002c80000028, Readback 0x8000202c80002028 Memory Test fails at 0x80000030, Write 0x8000003480000030, Readback 0x8000203480002030 Memory Test fails at 0x80000038, Write 0x8000003c80000038, Readback 0x8000203c80002038 Memory Test fails at 0x80000040, Write 0x8000004480000040, Readback 0x8000204480002040 Memory Test fails at 0x80000048, Write 0x8000004c80000048, Readback 0x8000204c80002048 !!!Failed Memory Address Test at 10 units Memory Test fails at 0x8fffac78, Write 0x8fffac7c8fffac78, Readback 0x8fff8c7c8fff8c78 Memory Test fails at 0x8fffac70, Write 0x8fffac748fffac70, Readback 0x8fff8c748fff8c70 Memory Test fails at 0x8fffac68, Write 0x8fffac6c8fffac68, Readback 0x8fff8c6c8fff8c68 Memory Test fails at 0x8fffac60, Write 0x8fffac648fffac60, Readback 0x8fff8c648fff8c60 Memory Test fails at 0x8fffac58, Write 0x8fffac5c8fffac58, Readback 0x8fff8c5c8fff8c58 Memory Test fails at 0x8fffac50, Write 0x8fffac548fffac50, Readback 0x8fff8c548fff8c50 Memory Test fails at 0x8fffac48, Write 0x8fffac4c8fffac48, Readback 0x8fff8c4c8fff8c48 Memory Test fails at 0x8fffac40, Write 0x8fffac448fffac40, Readback 0x8fff8c448fff8c40 Memory Test fails at 0x8fff7ff8, Write 0x8fff7ffc8fff7ff8, Readback 0x8fff5ffc8fff5ff8 Memory Test fails at 0x8fff7ff0, Write 0x8fff7ff48fff7ff0, Readback 0x8fff5ff48fff5ff0 !!!Failed Memory Address Test at 10 units Passed Bus Bit Walking at 0x80000000 Memory Bit Walking at 0x80000000 with pattern 0x 1 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffffe Memory Bit Walking at 0x80000000 with pattern 0x 2 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffffd Memory Bit Walking at 0x80000000 with pattern 0x 4 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffffb Memory Bit Walking at 0x80000000 with pattern 0x 8 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffff7 Memory Bit Walking at 0x80000000 with pattern 0x 10 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffffef Memory Bit Walking at 0x80000000 with pattern 0x 20 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffffdf Memory Bit Walking at 0x80000000 with pattern 0x 40 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffffbf Memory Bit Walking at 0x80000000 with pattern 0x 80 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffff7f Memory Bit Walking at 0x80000000 with pattern 0x 100 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffeff Memory Bit Walking at 0x80000000 with pattern 0x 200 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffdff Memory Bit Walking at 0x80000000 with pattern 0x 400 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffffbff Memory Bit Walking at 0x80000000 with pattern 0x 800 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffff7ff Memory Bit Walking at 0x80000000 with pattern 0x 1000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffefff Memory Bit Walking at 0x80000000 with pattern 0x 2000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffdfff Memory Bit Walking at 0x80000000 with pattern 0x 4000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffffbfff Memory Bit Walking at 0x80000000 with pattern 0x 8000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffff7fff Memory Bit Walking at 0x80000000 with pattern 0x 10000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffeffff Memory Bit Walking at 0x80000000 with pattern 0x 20000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffdffff Memory Bit Walking at 0x80000000 with pattern 0x 40000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffffbffff Memory Bit Walking at 0x80000000 with pattern 0x 80000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffff7ffff Memory Bit Walking at 0x80000000 with pattern 0x 100000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffefffff Memory Bit Walking at 0x80000000 with pattern 0x 200000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffdfffff Memory Bit Walking at 0x80000000 with pattern 0x 400000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffffbfffff Memory Bit Walking at 0x80000000 with pattern 0x 800000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffff7fffff Memory Bit Walking at 0x80000000 with pattern 0x 1000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffeffffff Memory Bit Walking at 0x80000000 with pattern 0x 2000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffdffffff Memory Bit Walking at 0x80000000 with pattern 0x 4000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffffbffffff Memory Bit Walking at 0x80000000 with pattern 0x 8000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffff7ffffff Memory Bit Walking at 0x80000000 with pattern 0x 10000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffefffffff Memory Bit Walking at 0x80000000 with pattern 0x 20000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffdfffffff Memory Bit Walking at 0x80000000 with pattern 0x 40000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffffbfffffff Memory Bit Walking at 0x80000000 with pattern 0x 80000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffff7fffffff Memory Bit Walking at 0x80000000 with pattern 0x 100000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffeffffffff Memory Bit Walking at 0x80000000 with pattern 0x 200000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffdffffffff Memory Bit Walking at 0x80000000 with pattern 0x 400000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffffbffffffff Memory Bit Walking at 0x80000000 with pattern 0x 800000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffff7ffffffff Memory Bit Walking at 0x80000000 with pattern 0x 1000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffefffffffff Memory Bit Walking at 0x80000000 with pattern 0x 2000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffdfffffffff Memory Bit Walking at 0x80000000 with pattern 0x 4000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffffbfffffffff Memory Bit Walking at 0x80000000 with pattern 0x 8000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffff7fffffffff Memory Bit Walking at 0x80000000 with pattern 0x 10000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffeffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 20000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffdffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 40000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffffbffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 80000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffff7ffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 100000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffefffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 200000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffdfffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 400000000000 Memory Bit Walking at 0x80000000 with pattern 0xffffbfffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 800000000000 Memory Bit Walking at 0x80000000 with pattern 0xffff7fffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 1000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffeffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 2000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffdffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 4000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfffbffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 8000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfff7ffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 10000000000000 Memory Bit Walking at 0x80000000 with pattern 0xffefffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 20000000000000 Memory Bit Walking at 0x80000000 with pattern 0xffdfffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 40000000000000 Memory Bit Walking at 0x80000000 with pattern 0xffbfffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 80000000000000 Memory Bit Walking at 0x80000000 with pattern 0xff7fffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 100000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfeffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 200000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfdffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 400000000000000 Memory Bit Walking at 0x80000000 with pattern 0xfbffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x 800000000000000 Memory Bit Walking at 0x80000000 with pattern 0xf7ffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x1000000000000000 Memory Bit Walking at 0x80000000 with pattern 0xefffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x2000000000000000 Memory Bit Walking at 0x80000000 with pattern 0xdfffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x4000000000000000 Memory Bit Walking at 0x80000000 with pattern 0xbfffffffffffffff Memory Bit Walking at 0x80000000 with pattern 0x8000000000000000 Memory Bit Walking at 0x80000000 with pattern 0x7fffffffffffffff Passed Memory Bit Walking from 0x80000000 to 0x90000000 Passed Times: 0 Failed Times: 1 Memory test complete at 1469058901718 cycle
1. 看起来你低bit 14有问题(0x0000 -> 0x2000),你需要检查初始化参数有没有问题,多测试一些板卡看是不是普遍问题,另外可以尝试降DDR的频率看是不是还会出现错误;
2. 需要修改CorePac的MPAX设置,参考C66x corepac user guide 7.3节