Edit online

测试指南

1. 相关数据
带宽 说明
800MB/s CLK 200MHz, DDR, parallel 模式下 XSPI 总线带宽理论值
320MB/s CLK 200MHz, DDR, parallel 模式下 XSPI 的协议损耗数据带宽理论值
290MB/s CLK 200MHz, DDR, parallel 模式下 XSPI 有效传输数据实测带宽值,其中有协议损耗

290MB/s,CLK 200MHz, DDR, parallel 模式下 XSPI 有效传输数据实测带宽值,其中有协议损耗。 此测试为 CPU 带宽测试,转换效率取决于 line 长度,传输 burst 越长 XSPI 转换效率越高。

bootloader 测试开关

在 Luban-Lite 根目录下执行 source onestep.sh 并 lunch 相关 bootloader 配置文件, 再执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择:
Bootloader options  --->
    Bootloader commands  --->
        [*] psram memory test

使能 psram memory test 选项后:

bootloader 的 cmd 中,会支持 psram 命令。

RTOS 下测试

  1. RTOS 下 memory 测试
    RTOS 默认配置使能 memory 测试, 通过:
    mem_test 0x100000 // 从 psram 中 malloc 0x100000 空间大小作为测试
    mem_test 0x40780000 0x10000 // 指定 0x40780000 起始地址, 0x10000 空间大小作为测试
  2. RTOS 下带宽测试
    1. 使能 test_stream:
      -> Local packages options
          -> Third-party packages options
          -> BenchMark Tests
          [*] STREAM : a benchmark that measures the sustained memory bandwidth.  --->
              (262144) Stream test array size.
    2. 关闭部分 APP,释放 psram 空间:
      Board options  --->
          [ ] Using Display Engine (DE)
          [ ] Using Graphics Engine (GE)
          [ ] Using Video Engine (VE)
      Application options  --->
          [ ] ArtInChip lvgl demo  ----
      Local packages options  --->
          Third-party packages options  --->
          [ ] LVGL (official): powerful and easy-to-use embedded GUI library  ----
          ArtInChip packages options  --->
          [ ] aic-mpp  ----
    3. 在 RTOS 的 console 中输入:
      // 查看 psram 空间情况
      aic/> free
      memheap           pool size  max used size available size
      ---------------- ---------- ------------- --------------
      heap_cma         8388608    48            8388560
      heap_sys         751264     19628         733852
      
      // 执行测试
      aic/> test_stream