Debian Codegraph @

lvgl/docs/src/integration/chip_vendors/renesas/rzg_family.rst

raw
1 ===========
2 RZ/G Family
3 ===========
4
5 Supported boards in the RZ/G Family:
6
7 - **RZ/G2L-EVKIT**
8 - **RZ/G2UL-EVKIT**
9 - **RZ/G3E-EVKIT**
10
11
12 G2L and G2UL
13 ************
14
15 Run the Project
16 ---------------
17
18 - The RZ/G2L and RZ/G2UL are MPUs with support for running Linux. Projects are built for them
19 using a cross-compiler CLI toolchain SDK in a Linux PC environment (WSL, Docker,
20 etc. can be used on Windows).
21 - The G2L has a Wayland desktop and the project appears as a Wayland window. The G2UL
22 does not have a desktop so the project is fullscreen and uses the ``fbdev`` driver.
23 - The SDK currently uses LVGL v8.3 so this project uses this version to mirror the SDK
24 version, even though LVGL is statically linked. You may try using newer versions of LVGL.
25 See the `v8-to-v9 Migration Guide <https://docs.lvgl.io/9.0/CHANGELOG.html#migration-guide>`__ for things you will need to address.
26 - Clone the ready-to-use repository for your selected board:
27
28 .. code-block:: shell
29
30 git clone https://github.com/lvgl/lv_port_renesas_rz-g2l-evkit --recurse-submodules
31
32
33 Downloading the `.zip` from GitHub doesn't work as it doesn't download the submodules.
34 - Follow the instructions in the project README.md to obtain the SD Card image and toolchain installer,
35 build, and upload the project to the board.
36 - Stop any automatically started demos (on G2UL run ``systemctl stop demo-launcher`` in the terminal).
37 - Run the project:
38
39 .. code-block:: shell
40
41 ./lvgl_demo_benchmark
42
43
44
45 Modify the project
46 ------------------
47
48
49 Open a demo
50 ~~~~~~~~~~~
51
52 The entry point is contained in ``src/main.c``.
53
54 You can disable the LVGL demos (``lv_demo_benchmark()``) (or just comment them out)
55 and call some ``lv_example_...()`` functions, or add your own custom code.
56
57
58 Configuration
59 ~~~~~~~~~~~~~
60
61 Edit ``lv_conf.h`` and ``lv_drv_conf.h`` to configure LVGL. The board image
62 contains LVGL and lv_drivers as dynamically linkable libraries. This project builds
63 LVGL statically for customizability and to port the LVGL v9 benchmark from LVGL v8.3.
64
65
66 G3E
67 ***
68
69 Run the Project
70 ---------------
71
72 - The RZ/G3E is a high-performance quad-core MPU. Projects are built for it using an
73 SDK that was generated with Yocto. You can customize a Yocto image+SDK or use the
74 pre-built ones. The SDK is intended for a Linux PC environment (WSL, Docker,
75 etc. can be used on Windows).
76 - The G3E has a Wayland desktop but it should be stopped with ``systemctl stop weston``
77 before running the default project since it runs in fullscreen using the OpenGL EGL+DRM driver.
78 - LVGL is not included in the SDK so you should build whichever version you need. Later
79 versions of LVGL include the optimal OpenGL driver.
80 - Clone the ready-to-use repository:
81
82 .. code-block:: shell
83
84 git clone https://github.com/lvgl/lv_port_renesas_rz-g3e-evkit --recurse-submodules
85
86
87 Downloading the `.zip` from GitHub doesn't work as it doesn't download the submodules.
88 - Follow the instructions in the project README.md to flash the board bootloader and obtain the
89 Yocto SD Card image and SDK (pre-built or custom-built), build, and upload the project to the board.
90 - Stop the Wayland desktop if using the OpenGL, DRM, or fbdev drivers. Run ``systemctl stop weston`` in the terminal.
91 - Run the project:
92
93 .. code-block:: shell
94
95 ./lvglsim
96
97
98
99 Modify the project
100 ------------------
101
102
103 Open a demo
104 ~~~~~~~~~~~
105
106 The entry point is contained in ``lv_port_linux/src/main.c``.
107
108 You can disable the LVGL demos (``lv_demo_benchmark()``) (or just comment them out)
109 and call some ``lv_example_...()`` functions, or add your own custom code.
110
111
112 Configuration
113 ~~~~~~~~~~~~~
114
115 Edit ``lv_conf.h`` to configure LVGL. You can edit ``lv_conf.defaults`` --- a sparse
116 version of ``lv_conf.h`` which you can use to regenerate ``lv_conf.h`` by running
117
118 .. code-block:: shell
119
120 python3 lv_port_linux/lvgl/scripts/generate_lv_conf.py
121
122
123 Support
124 *******
125
126 In case of any problems or questions open an issue in the corresponding repository.