2024-08-24 08:45:38 +02:00
|
|
|
.. _arm2d:
|
|
|
|
|
2023-04-27 06:42:02 -06:00
|
|
|
==========
|
|
|
|
Arm-2D GPU
|
|
|
|
==========
|
|
|
|
|
|
|
|
Arm-2D is not a GPU but **an abstraction layer for 2D GPUs dedicated to
|
|
|
|
Microcontrollers**. It supports all Cortex-M processors ranging from
|
|
|
|
Cortex-M0 to the latest Cortex-M85.
|
|
|
|
|
2024-01-22 17:05:05 +00:00
|
|
|
Arm-2D accelerates LVGL9 with two modes: **Synchronous Mode** and
|
2024-08-24 08:45:38 +02:00
|
|
|
**Asynchronous Mode**.
|
2024-01-15 18:50:03 +00:00
|
|
|
- When **Helium** and **ACI (Arm Custom Instruction)** are available, it is recommend
|
2024-08-24 08:45:38 +02:00
|
|
|
to use **Synchronous Mode** to accelerate LVGL.
|
2024-01-15 18:50:03 +00:00
|
|
|
- When Arm-2D backed 2D-GPUs are available, for example, **DMAC-350 based 2D
|
|
|
|
GPUs**, it is recommend to use **Asynchronous Mode** to accelerate LVGL.
|
|
|
|
|
2024-06-28 03:09:23 -04:00
|
|
|
Arm-2D is an open-source project on GitHub. For more, please refer to:
|
2023-04-27 06:42:02 -06:00
|
|
|
https://github.com/ARM-software/Arm-2D.
|
|
|
|
|
|
|
|
How to Use
|
|
|
|
**********
|
|
|
|
|
2024-01-15 18:50:03 +00:00
|
|
|
In general:
|
2024-08-24 08:45:38 +02:00
|
|
|
- you can set the macro :c:macro:`LV_USE_DRAW_ARM2D_SYNC` to ``1`` and
|
|
|
|
:c:macro:`LV_DRAW_SW_ASM` to ``LV_DRAW_SW_ASM_HELIUM`` in ``lv_conf.h`` to
|
|
|
|
enable Arm-2D synchronous acceleration for LVGL.
|
|
|
|
- You can set
|
|
|
|
the macro :c:macro:`LV_USE_DRAW_ARM2D_ASYNC` to ``1`` in ``lv_conf.h`` to enable
|
|
|
|
Arm-2D Asynchronous acceleration for LVGL.
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
If you are using
|
|
|
|
`CMSIS-Pack <https://github.com/lvgl/lvgl/tree/master/env_support/cmsis-pack>`__
|
2023-04-27 11:47:13 -06:00
|
|
|
to deploy the LVGL. You don't have to define the macro
|
2024-01-15 18:50:03 +00:00
|
|
|
:c:macro:`LV_USE_DRAW_ARM2D_SYNC` manually, instead the lv_conf_cmsis.h will
|
|
|
|
check the environment and set the :c:macro:`LV_USE_DRAW_ARM2D_SYNC` accordingly.
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
Design Considerations
|
|
|
|
*********************
|
|
|
|
|
|
|
|
As mentioned before, Arm-2D is an abstraction layer for 2D GPU; hence if
|
|
|
|
there is no accelerator or dedicated instruction set (such as Helium or
|
|
|
|
ACI) available for Arm-2D, it provides negligible performance boost for
|
|
|
|
LVGL (sometimes worse) for regular Cortex-M processors.
|
|
|
|
|
|
|
|
**We highly recommend you enable Arm-2D acceleration for LVGL** when:
|
|
|
|
|
2024-01-15 18:50:03 +00:00
|
|
|
- The target processors are **Cortex-M55**, **Cortex-M52** and **Cortex-M85**
|
2023-04-27 06:42:02 -06:00
|
|
|
- The target processors support
|
|
|
|
`Helium <https://developer.arm.com/documentation/102102/0103/?lang=en>`__.
|
|
|
|
- The device vendor provides an arm-2d compliant driver for their
|
2024-08-24 08:45:38 +02:00
|
|
|
proprietary 2D accelerators and/or ACI (Arm Customized Instruction).
|
2023-04-27 06:42:02 -06:00
|
|
|
- The target device contains
|
2024-01-15 18:50:03 +00:00
|
|
|
`DMAC-350 <https://community.arm.com/arm-community-blogs/b/internet-of-things-blog/posts/arm-corelink-dma-350-next-generation-direct-memory-access-for-endpoint-ai>`__
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
Examples
|
|
|
|
********
|
|
|
|
|
|
|
|
- `A Cortex-M55 (supports Helium) based MDK Project, PC emulation is
|
|
|
|
available. <https://github.com/lvgl/lv_port_an547_cm55_sim>`__
|
|
|
|
|
|
|
|
API
|
|
|
|
***
|
|
|
|
|
|
|
|
:ref:`lv_gpu_arm2d`
|