Skip to content

Color format in the capture_to_lvgl sample is broken when using the mini_stm32h743 board #93067

Open
@CharlesDias

Description

@CharlesDias

Describe the bug

Problem
The color format in the capture_to_lvgl sample is incorrect when using the mini_stm32h743 board with the weact_ov2640_cam_module module shield. The exact timing of when this regression was introduced is unknown.

This problem doesn't exist with stm32h7b3i_dk and st_b_cams_omv_mb1683.

Build command:
west build -p -b mini_stm32h743 --shield weact_ov2640_cam_module samples/drivers/video/capture_to_lvgl/ -- -DCONFIG_BOOT_DELAY=2000

Before fixing (incorrect colors):

WhatsApp Image 2025-07-13 at 13 36 42

Proposed solution
Disable CONFIG_LV_COLOR_16_SWAP for the mini_stm32h743 board to ensure proper color display in the capture_to_lvgl video sample.

After fixing (correct colors):

WhatsApp Image 2025-07-13 at 13 46 47

Notes

  • The background transparency for CPU and FPS monitor is not good, but the core color format issue is resolved.
  • This change is specific to the mini_stm32h743 board configuration.

Regression

  • This is a regression.

Steps to reproduce

  1. Checkout to release: Zephyr 4.2.0-rc3
  2. west build -p -b mini_stm32h743 --shield weact_ov2640_cam_module samples/drivers/video/capture_to_lvgl/ -- -DCONFIG_BOOT_DELAY=2000
  3. west flash
  4. See the image

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • release: Zephyr 4.2.0-rc3
  • Commit: 322da1d
  • zephyr-sdk-0.16.8

Additional Context

No response

@josuah @ngphibang @faxe1008

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions