Skip to main content

LVGL DEMO UI播放

LVGL DEMO UI播放,本文档以配置文件 x2600e_vast_v20_nand_5.10_factory_defconfig ,开发板 PD_X2600E_VAST_V2.0为例进行说明。

一 软件配置

2023-11-15_14-31

选择主配置文件:x2600e_vast_v20_nand_5.10_factory_defconfig

2023-11-15_15-24

勾选 lvgl平台支持

2023-11-15_15-24_1

选择lvgl需要用到的库和demo

2023-11-15_15-25

点击Yes保存配置。

buildroot 配置

buildroot/buildroot$ make menuconfig

2023-11-15_15-28

buildroot选择 jpeg support(jpeg-turbo)

使buildroot的配置生效

确定x2600e_vast_v20_nand_5.10_factory_defconfig 用到的buildroot配置为:buildroot_x2600_510_wifi_common_defconfig

build$ cat configs/x2600e_vast_v20_nand_5.10_factory_defconfig | grep "buildroot"
APP_br_dir=../buildroot/buildroot
APP_br_config_file=configs/buildroot/buildroot_x2600_510_wifi_common_defconfig
# APP_br_root_login_keep_buildroot is not set

执行如下命令,使buildroot配置生效

buildroot/buildroot$ cp .config ../../build/configs/buildroot/buildroot_x2600_510_wifi_common_defconfig -arf

二 固件编译

执行完上述操作以后,编译步骤如下:

build$ make clean

build$ make x2600e_vast_v20_nand_5.10_factory_defconfig

build$ make

生成固件如下:

build$ ls output/ -lh
total 19M
-rw-r--r-- 1 kenny kenny 14M 1115 14:18 rootfs.squashfs
-rw-rw-r-- 1 kenny kenny 24K 1115 14:18 u-boot-spl-pad.bin
-rw-rw-r-- 1 kenny kenny 4.7M 1115 14:17 xImage

三 固件烧录

注意:

1, vast v1.0开发板配置了新的4Gbit sfc nand flash,因此仅2.5.36.1及以后的烧录工具版本可以支持烧录此开发板,请务必使用对应版本的烧录工具来烧录。

2, vast v2.0开发板配置了新的1Gbit sfc nand flash,用任何版本的烧录工具都可以支持烧录。 建议使用最新版本。

具体烧录配置如下(其他选项卡默认就好):

2023-09-22_16-11_1

2023-09-22_16-11_1

2023-09-22_16-11_1

2023-09-22_16-11_1

2023-09-22_16-11_1

四 运行测试

# lv_demo_widgets 

[Warn] (0.000, +0) lv_demo_widgets: LV_FONT_MONTSERRAT_24 is not enabled for the widgets demo. Using LV_FONT_DEFAULT instead. (in lv_demo_widgets.c line #114)
[Warn] (0.000, +0) lv_demo_widgets: LV_FONT_MONTSERRAT_16 is not enabled for the widgets demo. Using LV_FONT_DEFAULT instead. (in lv_demo_widgets.c line #119)