Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    如何将R128的lspsram频率提高至200M?

    A Series
    2
    2
    1014
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newcastle
      newcastle LV 6 last edited by

      使用的FreeRTOS,默认SDK中lspsram运行的频率为192M,如果将频率提高至200M的话,会让lspsram的带宽有稍微的提高,请教一下各位大神有没有对应的教程

      1 Reply Last reply Reply Quote Share 0
      • bayche
        bayche LV 6 last edited by

        一、修改频率方法

        首先通过cboot0命令,跳转到boot0的代码中,路径为:
        ${root_dir}/lichee/brandy-2.0/spl/

        找到lspsram的代码,路径为:
        ${root_dir}/lichee/brandy-2.0/spl/drivers/psram

        修改头文件,将200M的宏打开,修改如下:

        vi hal_psramctrl.h
        
        diff --git a/drivers/psram/hal_psramctrl.h b/drivers/psram/hal_psramctrl.h
        index a552a0e..114e330 100644
        --- a/drivers/psram/hal_psramctrl.h
        +++ b/drivers/psram/hal_psramctrl.h
        @@ -39,7 +39,7 @@
          * definition CONFIG_PSRAM_200M.
          */
        
        -// #define CONFIG_PSRAM_200M
        +#define CONFIG_PSRAM_200M
        
         /* CLK CTRL MODULE */
         #define BUS_CLK_GATING_CTRL0  0x4003c004
        

        然后重新编译boot0,就可以让lspsram初始化为200M了。

        mboot0 && pack
        

        ##二、根据log查看频率

        根据boot0的系统log,可以查看到当前lspsram加载的频率,如下图所示:

        downloadFileByUrl (2).png

        psram chip APS64 init ok!, freq 192000000
        

        证明当前加载的是lspsram型号为APS64,频率为192MHz。若将频率切换成200MHz,此处的打印就会改成"freq 200000000"。

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策