Question
BUG FOUND IN LTDC 18bits mode in STMCubeMX 6.15.0
- November 3, 2025
- 1 reply
- 208 views
Hello ST team,
I would like to report a pin mapping issue in STM32CubeMX when configuring the LTDC peripheral in RGB666 (18-bit) mode, especially on STM32H750 (and other STM32H7 devices).
Problem description
When selecting RGB666 (18 bits) as the LTDC color format, CubeMX automatically assigns 7 bits to the Red channel instead of 6.
Example of generated mapping:
RED: R1–R7 ← 7 bits
GREEN: G2–G7
BLUE: B2–B7
This results in a RGB766 (19-bit) configuration, which is invalid for the LTDC hardware.
The correct mapping for RGB666 should be:
RED: R2–R7 :white_heavy_check_mark:
GREEN: G2–G7 :white_heavy_check_mark:
BLUE: B2–B7 :white_heavy_check_mark:
