| 1 |
.. include:: /include/substitutions.txt |
| 2 |
========= |
| 3 |
RX Family |
| 4 |
========= |
| 5 |
|
| 6 |
.. |img_debug_btn| image:: /_static/images/renesas/debug_btn.png |
| 7 |
:alt: Debug button |
| 8 |
|
| 9 |
Supported boards in the RX Family: |
| 10 |
|
| 11 |
- **RX72N Envision Kit** |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
Run the Project |
| 16 |
*************** |
| 17 |
|
| 18 |
- The official IDE of Renesas is called e\ |sup2| studio. Because it's Eclipse-based, |
| 19 |
it runs on Windows, Linux, and Mac as well. It can be downloaded |
| 20 |
`here <https://www.renesas.com/us/en/software-tool/e-studio>`__. |
| 21 |
- Download and install the required driver for the debugger |
| 22 |
|
| 23 |
- for Windows: `64 bit here <https://www.renesas.com/us/en/document/uid/usb-driver-renesas-mcu-tools-v27700-64-bit-version-windows-os?r=488806>`__ |
| 24 |
and `32 bit here <https://www.renesas.com/us/en/document/uid/usb-driver-renesas-mcu-toolse2e2-liteie850ie850apg-fp5-v27700for-32-bit-version-windows-os?r=488806>`__ |
| 25 |
- for Linux: `here <https://www.renesas.com/us/en/document/swo/e2-emulator-e2-emulator-lite-linux-driver?r=488806>`__ |
| 26 |
|
| 27 |
- RX72 requires an external compiler for the RXv3 core. A free and open-source version is available |
| 28 |
`here <https://llvm-gcc-renesas.com/rx-download-toolchains/>`__ after registration. |
| 29 |
|
| 30 |
The compiler must be activated in e\ |sup2| studio: |
| 31 |
|
| 32 |
- Go to go to ``Help`` -> ``Add Renesas Toolchains`` |
| 33 |
- Press the ``Add...`` button |
| 34 |
- Select the installation folder of the toolchain |
| 35 |
|
| 36 |
.. image:: /_static/images/renesas/toolchains.png |
| 37 |
:alt: Toolchains |
| 38 |
|
| 39 |
- Clone the ready-to-use `lv_port_renesas_rx72n-envision-kit <https://github.com/lvgl/lv_port_renesas_rx72n-envision-kit.git>`__ repository: |
| 40 |
|
| 41 |
.. code-block:: shell |
| 42 |
|
| 43 |
git clone https://github.com/lvgl/lv_port_renesas_rx72n-envision-kit.git --recurse-submodules |
| 44 |
|
| 45 |
|
| 46 |
Downloading the `.zip` from GitHub doesn't work as it doesn't download the submodules. |
| 47 |
|
| 48 |
- Open e\ |sup2| studio, go to ``File`` -> ``Import project`` and select ``General`` / ``Existing projects into workspace`` |
| 49 |
- Select the cloned folder and press ``Finish``. |
| 50 |
- Double-click on ``RX72N_EnVision_LVGL.scfg`` to activate the ``Configuration Window``. |
| 51 |
|
| 52 |
Renesas' Smart Configurator (SMC) includes BSP and HAL layer support extended with |
| 53 |
multiple RTOS variants and other middleware stacks. The components will be |
| 54 |
available via code generation, including the entry point of the application. |
| 55 |
|
| 56 |
Press ``Generate Code`` in the top right corner. |
| 57 |
|
| 58 |
.. image:: /_static/images/renesas/generate_smc.png |
| 59 |
:alt: Code generation with SMC |
| 60 |
|
| 61 |
- Build the project by pressing ``Ctrl`` + ``Alt`` + ``B`` |
| 62 |
- Click the Debug button (|img_debug_btn|). If prompted with `Debug Configurations`, on the `Debugger` tab select the ``E2 Lite`` |
| 63 |
as `Debug hardware` and ``R5F572NN`` as `Target Device`: |
| 64 |
|
| 65 |
.. image:: /_static/images/renesas/debug_rx72.png |
| 66 |
:alt: Debugger parameters for RX72 |
| 67 |
|
| 68 |
.. note:: |
| 69 |
Make sure that both channels of ``SW1`` DIP switch (next to ``ECN1``) are OFF. |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
Modify the project |
| 74 |
****************** |
| 75 |
|
| 76 |
|
| 77 |
Open a demo |
| 78 |
----------- |
| 79 |
|
| 80 |
The entry point of the main task is contained in ``src/LVGL_thread_entry.c``. |
| 81 |
|
| 82 |
You can disable the LVGL demos (or just comment them out) and call some |
| 83 |
``lv_example_...()`` functions, or add your own custom code. |
| 84 |
|
| 85 |
|
| 86 |
Configuration |
| 87 |
------------- |
| 88 |
|
| 89 |
``src/lv_conf.h`` contains the most important settings for LVGL. Namely: |
| 90 |
|
| 91 |
- :c:macro:`LV_COLOR_DEPTH` to set LVGL's default color depth |
| 92 |
- :c:macro:`LV_MEM_SIZE` to set the maximum RAM available to LVGL |
| 93 |
- :c:macro:`LV_USE_DAVE2D` to enable the GPU |
| 94 |
|
| 95 |
|
| 96 |
Hardware and software components can be modified in a visual way using the |
| 97 |
``Configuration Window``. |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
Support |
| 102 |
******* |
| 103 |
|
| 104 |
In case of any problems or questions open an issue in the corresponding repository. |