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.

tm4c1292增加SDRAM但是读写速度慢

Other Parts Discussed in Thread: TIDM-TM4C129XSDRAM, TM4C1292NCZAD, TM4C1294NCPDT, TM4C1292NCPDT

大家好:

我想请问个问题,我们自己设计的板子,处理器是TM4C1292NCZAD,扩展了一块512M SDRAM,型号为IS42S16320D-7BLI,使用TIDM-TM4C129XSDRAM提供的原理图设计, 并使用例程测试读写性能远不如TIDM-TM4C129XSDRAM文档里面的那么高,

以下为我们板子的测试数据,跟TIDM-TM4C129XSDRAM测试差了一半还多呢.请问是为什么呀.我们使用示波器测试EPI0_31 引脚 , 时钟频率是60Mhz.

System Initialize
-----------------------------------------
System Clock Freq: 120Mhz
Initialize Console.....................OK
Initialize uDMA Controller.............OK
-----------------------------------------
Startup completed

EPI SDRAM Mode ->
Type: SDRAM
Starting Address: 0x60000000
End Address: 0x6fffffff
Data: 16-bit
Size: 256MB (32Meg x 16bits)

SDRAM Initial Data:
Mem[0x6000.0000] = 0x1234
Mem[0x6000.0001] = 0xabcd
Mem[0x6FFF.FFFE] = 0xdcba
Mem[0x6FFF.FFFF] = 0x4321

SDRAM Write:
Mem[0x6000.0000] <- 0xabcd
Mem[0x6000.0001] <- 0x1234
Mem[0x6FFF.FFFE] <- 0xdcba
Mem[0x6FFF.FFFF] <- 0x4321

SDRAM Read:
Mem[0x6000.0000] = 0xabcd
Mem[0x6000.0001] = 0x1234
Mem[0x6FFF.FFFE] = 0xdcba
Mem[0x6FFF.FFFF] = 0x4321

Read and write to external SDRAM was successful!
Begin Performance Test!
16-bit SDRAM Write : 13.49062 MBps
16-bit SDRAM Read : 07.90099 MBps
32-bit SDRAM Write : 20.20320 MBps
32-bit SDRAM Read : 13.62328 MBps
64-bit SDRAM Write : 36.11910 MBps
64-bit SDRAM Read : 19.39513 MBps

  • 另外我使用同样的测试程序,对TM4C多款MCU作了内部SRAM读写测试.
    TM4C1294NCPDT为官方开发板 ,
    1292ZAD和1292PDT为自己设计的板子,我想问问,这是处理器硬件差异还是其他原因.是不是212引脚封装的MCU高于128引脚的才导致测试结果不一致,因为看见TIDM-TM4C129XSDRAM提供的数据测试平台也是在212引脚的处理器上测试的.

    SRAM: Internal
    Starting Address: 0x20020000
    End Address: 0x20040000

    TM4C1292NCZAD

    32-bit SRAM Write : 59.6894 MBps
    32-bit SRAM Read : 53.2012 MBps

    TM4C1292NCPDT

    32-bit SRAM Write : 20.20280 MBps
    32-bit SRAM Read : 19.48963 MBps

    TM4C1294NCPDT

    32-bit SRAM Write : 20.20200 MBps
    32-bit SRAM Read : 19.18603 MBps
  • 您现在使用的是TM4C1292NCZAD,扩展了一块512M SDRAM,型号为IS42S16320D-7BLI。这些是和开发板是基本完全相同的设置

    若是您使用相同的例程测出来速率差别很大的话,硬件上出现问题的概率会更大一些