MPP 配置
驱动配置
MPP 依赖 VE 和 GE 驱动,请在 MPP 编译前进行配置。
在 Luban-Lite 根目录下执行
scons
--menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:Board options---> [*] Using Graphics Engine (GE) [*] Using Video Engine (VE)
MPP 使能
在 luban-lite 的根目录下通过
scons
--menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:Local packages options---> ArtInChip packages options---> [*]aic-mpp
MPP 内存配置
VE 和 GE 要求物理内存连续,同时为了 解决内存碎片化 的问题 ,预留一片连续内存区域供 MPP 使用,可以对预留区域的大小进行配置。
在 Luban-Lite 根目录下执行
scons
--menuconfig
,进入 menuconfig 的功能配置界面,其大小配置:Board options---> Mem options---> (1x100000) SRAM Total Size [ ] Enable TCM (Tightly Coupled Memory) (1x100000) SRAM_S0 Size (4096) Interrupt stack size reserve in '.section .bss' SRAM_S1 Size (0K) ---> (0x0) Software size in SRAM_S1 (0x800000) PSRAM size (0x0) Software size in PSRAM [ ] Enable XIP
-
预留 SRAM 和 PSRAM 内存区域,不仅供 MPP 使用,还需要为其它需要模块预留,比如显示模块,所以预留区域的大小需要加上其他模块。
-
这里是支持 psram 的芯片的内存配置示例,luban-lite 也有芯片采用的是 dram