Graphics Component  Version 6.32.3
MDK Middleware for Graphical User Interfaces
Resource Requirements

This section describes the resource requirements of the Graphics component. The actual requirements depend on the features used in the application. Therefore, the numbers provided here are guidelines only and the actual numbers may differ.

CMSIS-RTOS Requirements

The Graphics component does not allocate CMSIS-RTOS resources by itself. However, the user code templates GUI_SingleThread.c and GUI_MultiThread.c define threads that require additional stack (refer to Execution Models).

RTX v5 Requirements

The Graphics component allocates all necessary resources for threads statically so no changes to RTX settings regarding threads are necessary.

RTX v4 Requirements

Requirements are configured in the file located under the CMSIS component class:

  • Thread Configuration (Single-Task Execution Model)
    Option Value
    Number of concurrent running user threads + 1
    Number of threads with user-provided stack size + 1
    Total stack size [bytes] for threads with user-provided stack size + 2048
  • Thread Configuration (Multiple-Task Execution Model)
    Option Value
    Number of concurrent running user threads + 3
    Number of threads with user-provided stack size + 3
    Total stack size [bytes] for threads with user-provided stack size + 3248
  • System Configuration
    Option Value
    User Timers Enable

Timers

The Graphics component requires timers which need to be enabled in RTOS.

It will generate up to three user times, depending on the components that are used in the project:

  • One timer is used for the Graphics component in general
  • An additional timer is used if a joystick is added to the project
  • Another timer is generated if a touch-screen driver is part of the project. In this case, the Timer Thread stack size [bytes] has to be set to 1024 Bytes.

RTX v5 Timer Settings

Timers are configured in the file located under the CMSIS component class:

  • Timer Configuration
    Option Value
    Number of Timer objects + 1 .. 3 (according to above explanation)
    Timer Thread stack size [bytes] + 1024 (if touch-screen is used)

RTX v4 Timer Settings

Timers are configured in the file located under the CMSIS component class:

  • System Configuration
    Option Value
    User Timers Enable
    Timer Thread stack size [bytes] + 1024 (if touch-screen is used)

Memory Requirements

The various parts of the Graphics component have dedicated memory requirements. Please refer to the User and Reference Guide - 35. Performance and Resource Usage.