RX Family
Supported boards in the RX Family:
- RX72N Envision Kit
Run the Project
-
The official IDE of Renesas is called e² studio. Because it's Eclipse-based, it runs on Windows, Linux, and Mac as well. It can be downloaded here.
-
Download and install the required driver for the debugger
- for Windows: 64 bit here and 32 bit here
- for Linux: here
-
RX72 requires an external compiler for the RXv3 core. A free and open-source version is available here after registration.
The compiler must be activated in e² studio:
- Go to go to
Help->Add Renesas Toolchains - Press the
Add...button - Select the installation folder of the toolchain
.. image:: /_static/images/renesas/toolchains.png :alt: Toolchains
- Go to go to
-
Clone the ready-to-use lv_port_renesas_rx72n-envision-kit repository:
.. code-block:: shell
git clone https://github.com/lvgl/lv_port_renesas_rx72n-envision-kit.git --recurse-submodules
Downloading the .zip from GitHub doesn't work as it doesn't download the submodules.
-
Open e² studio, go to
File->Import projectand selectGeneral/Existing projects into workspace -
Select the cloned folder and press
Finish. -
Double-click on
RX72N_EnVision_LVGL.scfgto activate theConfiguration Window.Renesas' Smart Configurator (SMC) includes BSP and HAL layer support extended with multiple RTOS variants and other middleware stacks. The components will be available via code generation, including the entry point of the application.
Press
Generate Codein the top right corner... image:: /_static/images/renesas/generate_smc.png :alt: Code generation with SMC
-
Build the project by pressing
Ctrl+Alt+B -
Click the Debug button (
). If prompted with Debug Configurations, on theDebuggertab select theE2 LiteasDebug hardwareandR5F572NNasTarget Device:.. image:: /_static/images/renesas/debug_rx72.png :alt: Debugger parameters for RX72
Make sure that both channels of SW1 DIP switch (next to ECN1) are OFF.
Modify the project
Open a demo
The entry point of the main task is contained in src/LVGL_thread_entry.c.
You can disable the LVGL demos (or just comment them out) and call some
lv_example_...() functions, or add your own custom code.
Configuration
src/lv_conf.h contains the most important settings for LVGL. Namely:
LV_COLOR_DEPTHto set LVGL's default color depthLV_MEM_SIZEto set the maximum RAM available to LVGLLV_USE_DAVE2Dto enable the GPU
Hardware and software components can be modified in a visual way using the
Configuration Window.
Support
In case of any problems or questions open an issue in the corresponding repository.
How is this guide?
Last updated on