| 1 |
.. include:: /include/substitutions.txt |
| 2 |
========= |
| 3 |
RA Family |
| 4 |
========= |
| 5 |
|
| 6 |
.. |img_debug_btn| image:: /_static/images/renesas/debug_btn.png |
| 7 |
:alt: Debug button |
| 8 |
|
| 9 |
Supported boards in the RA Family: |
| 10 |
|
| 11 |
- **EK-RA8D1** |
| 12 |
- **EK-RA8P1** |
| 13 |
- **EK-RA6M3G** |
| 14 |
- **EK-RA8D2** |
| 15 |
|
| 16 |
|
| 17 |
Run the Project |
| 18 |
*************** |
| 19 |
|
| 20 |
- The official IDE of Renesas is called e\ |sup2| studio. Because it's Eclipse-based, |
| 21 |
it runs on Windows, Linux, and Mac as well. Members of the RA family require |
| 22 |
certain versions of the Flexible Software Package (FSP). See the individual |
| 23 |
README.md files in the applicable repositories for info. FSPs can be downloaded |
| 24 |
`here <https://www.renesas.com/us/en/software-tool/flexible-software-package-fsp>`__. |
| 25 |
Please notice from FSP version 6.0 and above, LVGL is now part of the middleware section |
| 26 |
of components. Therefore when cloning the latest versions of the supported LVGL board |
| 27 |
repositories, recursive updating of the git submodules is no longer needed. |
| 28 |
|
| 29 |
- JLink is used for debugging, it can be downloaded `here |
| 30 |
<https://www.segger.com/downloads/jlink/>`__. |
| 31 |
|
| 32 |
- Clone the ready-to-use repository for your selected board, for FSP version prior to 6.0: |
| 33 |
|
| 34 |
.. code-block:: shell |
| 35 |
|
| 36 |
git clone https://github.com/lvgl/lv_port_renesas_ek-ra8d1_gcc.git --recurse-submodules |
| 37 |
|
| 38 |
Downloading the `.zip` from GitHub doesn't work as it doesn't download the submodules. |
| 39 |
|
| 40 |
- Clone the ready-to-use repository for your selected board, for FSP version from 6.0 and above: |
| 41 |
|
| 42 |
.. code-block:: shell |
| 43 |
|
| 44 |
git clone https://github.com/lvgl/lv_port_renesas_ek-ra8d1_gcc.git |
| 45 |
|
| 46 |
- Open e\ |sup2| studio, go to ``File`` -> ``Import project`` and select |
| 47 |
``General`` / ``Existing projects into workspace``. |
| 48 |
- Select the cloned folder and press ``Finish``. |
| 49 |
- Double-click on ``configuration.xml``. This will activate the `Configuration Window`. |
| 50 |
|
| 51 |
Renesas' Flexible Software Package (FSP) includes BSP and HAL layer support extended |
| 52 |
with multiple RTOS variants and other middleware stacks. The components will be |
| 53 |
available via code generation, including the entry point in *"main.c"*. |
| 54 |
|
| 55 |
Press ``Generate Project Content`` in the top right corner. |
| 56 |
|
| 57 |
.. image:: /_static/images/renesas/generate.png |
| 58 |
:alt: Code generation with FSP |
| 59 |
|
| 60 |
- Build the project by pressing ``Ctrl`` + ``Alt`` + ``B`` |
| 61 |
- Click the Debug button (|img_debug_btn|). If prompted with `Debug Configurations`, |
| 62 |
on the `Debugger` tab select the ``J-Link ARM`` as `Debug hardware` and the proper |
| 63 |
IC as `Target Device`: |
| 64 |
|
| 65 |
- ``R7FA8D1BH`` for EK-RA8D1 |
| 66 |
|
| 67 |
.. image:: /_static/images/renesas/debug_ra8.png |
| 68 |
:alt: Debugger parameters for RA8 |
| 69 |
|
| 70 |
- ``R7FA6M3AH`` for EK-RA6M3G |
| 71 |
|
| 72 |
.. image:: /_static/images/renesas/debug_ra6.png |
| 73 |
:alt: Debugger parameters for RA6 |
| 74 |
|
| 75 |
.. note:: |
| 76 |
|
| 77 |
On EK-RA8D1 boards, the ``SW1`` DIP switch 7 (in the middle of the board) should be |
| 78 |
ON, all others are OFF. |
| 79 |
|
| 80 |
Also note opening a project previously built on top of the FSP prior to v6.0 will trigger |
| 81 |
a dialog asking whether the user wants to migrate to the new FSP v6.0. The migration will |
| 82 |
not break the project,. |
| 83 |
|
| 84 |
|
| 85 |
Modify the project |
| 86 |
****************** |
| 87 |
|
| 88 |
|
| 89 |
Open a demo |
| 90 |
----------- |
| 91 |
|
| 92 |
The entry point of the main task is contained in ``src/LVGL_thread_entry.c``. |
| 93 |
|
| 94 |
You can disable the LVGL demos (or just comment them out) and call some |
| 95 |
``lv_example_...()`` functions, or add your own custom code. |
| 96 |
|
| 97 |
|
| 98 |
Configuration |
| 99 |
------------- |
| 100 |
|
| 101 |
``src/lv_conf.h`` (or ``src/lv_conf_user.h``) contains the most important settings for LVGL. Namely: |
| 102 |
|
| 103 |
- :c:macro:`LV_COLOR_DEPTH` to set LVGL's default color depth |
| 104 |
- :c:macro:`LV_MEM_SIZE` to set the maximum RAM available to LVGL |
| 105 |
- :c:macro:`LV_USE_DAVE2D` to enable the GPU |
| 106 |
|
| 107 |
|
| 108 |
Hardware and software components can be modified in a visual way using the |
| 109 |
``Configuration Window``. |
| 110 |
|
| 111 |
As of e\ |sup2| Studio 2025-04.1 and FSP 6.0.0, LVGL is a managed component. |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
Support |
| 116 |
******* |
| 117 |
|
| 118 |
In case of any problems or questions open an issue in the corresponding repository. |