1.1 Custom files
There are two custom files.
1). “custom_gadget_cfg.h” located in custom\app\[*PROJECT_NAME]\
2). “custom_gadget_config.h” located in custom\common
Notice that the precedence of “custom_gadget_cfg.h” is higher than “custom_gadget_config.h”.
Ps. * PROJECT_NAME depends on each project’s naming.
1.2 Options
1.2.1 GADGET_USE_ASM
If Widget uses ASM, this option must be defined. If not, all the memory used by Widget is from a static memory pool.
Example,
#define GADGET_USE_ASM
1.2.2 GADGET_CUSTOM_CFG_SYS_MEM_SIZE
Whether Widget uses ASM or not, it must have a static memory pool for basic operation, for example, installation, entering widget manager and so on. If Widget uses ASM, 200KB static memory shall be enough. If not, it requires a larger size since all used memory is from the static pool.
Example,
#define GADGET_CUSTOM_CFG_SYS_MEM_SIZE (180 * 1024)
1.2.3 GADGET_CUSTOM_CFG_ASM_MEM_SIZE (valid if ASM is used)
If GADGET_USE_ASM is defined, this option will have effect. It is used to configure the size of ASM that Widget needs.
Example,
#define GADGET_CUSTOM_CFG_ASM_MEM_SIZE (2000 * 1024)
1.2.4 GADGE_BROWSER_CONCURRENCE (valid if ASM is used)
This option is used to guarantee the coexistence of Widget and Browser. If defined, it will make sure the ASM pool size is large enough for Widget and Browser concurrently. This can avoid the situation that widget is asked to be closed when user wants to launch the Browser. If GADGE_BROWSER_CONCURRENCE is not defined, the coexistence of widget and browser will be not guaranteed. It depends on how large the ASM is configured.
Example,
#define GADGE_BROWSER_CONCURRENCE
1.3 Make modules
When the configuration is changed, you have to clean and remake custom and applib. This makes the change take effect.
Example,
make c,r custom applib
1.4 Configuration examples
The following shows some examples of configuration.
1.4.1 Widget does not use ASM
#define GADGET_CUSTOM_CFG_SYS_MEM_SIZE (2500 * 1024)
1.4.2 Widget uses ASM
1.4.2.1 Coexistence with Browser is guaranteed
#define GADGET_USE_ASM
#define GADGET_CUSTOM_CFG_SYS_MEM_SIZE (180 * 1024)
#define GADGET_CUSTOM_CFG_ASM_MEM_SIZE (3000 * 1024)
#define GADGE_BROWSER_CONCURRENCE
1.4.2.2 Coexistence with Browser is not guaranteed
#define GADGET_USE_ASM
#define GADGET_CUSTOM_CFG_SYS_MEM_SIZE (180 * 1024)
#define GADGET_CUSTOM_CFG_ASM_MEM_SIZE (3000 * 1024)
Web widget Memory Configuration
原创
©著作权归作者所有:来自51CTO博客作者曹观沧海的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:MTK email
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
LangChain之内存记忆 ( Memory )
大多数LLM应用都具有对话功能,如聊天机器人,记住先前的交互非常关键。对话的重要一环是能够引用之前提及的信息,这些信息需要进行存储,因此将这种存储过去交互信息的能力称为记忆 ( Memory )。
初始化 python Memory LLM LangChain -
Error: A web configuration modification operation is already runningmicrosoft d3 3c 错误信息 参考资料
-
java 怎么看报文的大小
【1】8种基本类型 -> 字符串(String) 1.(推荐)基本类型的变量名+"" 最简单的方法(工作中常用) strL = l + ""; 2.String类的静态方法String.valueOf(基本类型参数) strL = St
java 怎么看报文的大小 java 字符串 stream 数组