Skip to content

Commit 53b01e0

Browse files
Yuan Ming Fucostaud
Yuan Ming Fu
authored andcommitted
doc(littlevgl): Update littlevgl document
1 parent 9e0ea42 commit 53b01e0

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

documents/hmi_solution/littlevgl/littlevgl_guide_cn.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,4 +774,26 @@ iot-solution 中已经做了一些驱动适配,驱动路径: `components/hmi
774774

775775
在 LittlevGL Settings 菜单中可以将自定义的驱动组件添加到 LittlevGL 的编译路径中(此时只编译自定义的驱动,不编译 iot-solution 提供的驱动组件),路径:`Use Custom Driver Defined By Users`
776776

777-
## FAQs
777+
## FAQs
778+
779+
1. ``.dram0.bss' will not fit in region `dram0_0_seg'``region `dram0_0_seg' overflowed by 10072 bytes`
780+
781+
由于 LittlevGL 更新,增加了 `.bss` 代码量,如果编译时出现这个问题,可以在 `lv_conf.h` 文件中,将没有使用的主题(theme)、字体(font)、对象(objects)关掉,例如:程序中只使用默认主题,那么我们可以将其他的主题都关掉:
782+
783+
```c
784+
/*================
785+
* THEME USAGE
786+
*================*/
787+
#define LV_THEME_LIVE_UPDATE 0 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/
788+
789+
#define USE_LV_THEME_TEMPL 0 /*Just for test*/
790+
#define USE_LV_THEME_DEFAULT 1 /*Built mainly from the built-in styles. Consumes very few RAM*/
791+
#define USE_LV_THEME_ALIEN 0 /*Dark futuristic theme*/
792+
#define USE_LV_THEME_NIGHT 0 /*Dark elegant theme*/
793+
#define USE_LV_THEME_MONO 0 /*Mono color theme for monochrome displays*/
794+
#define USE_LV_THEME_MATERIAL 0 /*Flat theme with bold colors and light shadows*/
795+
#define USE_LV_THEME_ZEN 0 /*Peaceful, mainly light theme */
796+
#define USE_LV_THEME_NEMO 0 /*Water-like theme based on the movie "Finding Nemo"*/
797+
```
798+
799+
类似,我们可以将其他不使用功能关掉。

documents/hmi_solution/littlevgl/littlevgl_guide_en.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,4 +900,26 @@ There are two ways to configure LittlevGL in iot-solution:
900900

901901
The LittlevGL Settings menu allows you to add the customized driver components to the LittlevGL build path: `Use Custom Driver Defined By Users`. If added, only the customized drivers will be built, and all the driver components provided by iot-solution will not be built at that point.
902902

903-
## FAQs
903+
## FAQs
904+
905+
1. ``.dram0.bss' will not fit in region `dram0_0_seg'` or `region `dram0_0_seg' overflowed by 10072 bytes`
906+
907+
Due to the LittlevGL update, the amount of `.bss` code has been added. If this problem occurs during compilation, you can disable unused themes, fonts, and objects in the `lv_conf.h` file. For example, if only the default theme is used in the program, then we can disable other themes:
908+
909+
```c
910+
/*================
911+
* THEME USAGE
912+
*================*/
913+
#define LV_THEME_LIVE_UPDATE 0 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/
914+
915+
#define USE_LV_THEME_TEMPL 0 /*Just for test*/
916+
#define USE_LV_THEME_DEFAULT 1 /*Built mainly from the built-in styles. Consumes very few RAM*/
917+
#define USE_LV_THEME_ALIEN 0 /*Dark futuristic theme*/
918+
#define USE_LV_THEME_NIGHT 0 /*Dark elegant theme*/
919+
#define USE_LV_THEME_MONO 0 /*Mono color theme for monochrome displays*/
920+
#define USE_LV_THEME_MATERIAL 0 /*Flat theme with bold colors and light shadows*/
921+
#define USE_LV_THEME_ZEN 0 /*Peaceful, mainly light theme */
922+
#define USE_LV_THEME_NEMO 0 /*Water-like theme based on the movie "Finding Nemo"*/
923+
```
924+
925+
Similarly, we can disable other unused features.

0 commit comments

Comments
 (0)