-
Bug or Nothttps://lists.zephyrproject.org/g/devel/topic/95406281#8795 Describe the bug Bad CaseTo Reproduce
showing color bars with Expected behavior Logs and console output Better CaseTo Reproduce diff --git a/drivers/display/display_stm32_ltdc.c b/drivers/display/display_stm32_ltdc.c
index 840c276e28..04d387cf37 100644
--- a/drivers/display/display_stm32_ltdc.c
+++ b/drivers/display/display_stm32_ltdc.c
@@ -280,7 +280,18 @@ static int stm32_ltdc_init(const struct device *dev)
LOG_ERR("clock control device not ready");
return -ENODEV;
}
-
+#if 1
+ RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
+
+ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
+ PeriphClkInitStruct.PLL3.PLL3M = DT_PROP(DT_NODELABEL(pll3), div_m);
+ PeriphClkInitStruct.PLL3.PLL3N = DT_PROP(DT_NODELABEL(pll3), mul_n);
+ PeriphClkInitStruct.PLL3.PLL3P = DT_PROP_OR(DT_NODELABEL(pll3), div_p, 1);
+ PeriphClkInitStruct.PLL3.PLL3Q = DT_PROP_OR(DT_NODELABEL(pll3), div_q, 1);
+ PeriphClkInitStruct.PLL3.PLL3R = DT_PROP_OR(DT_NODELABEL(pll3), div_r, 1);
+ PeriphClkInitStruct.PLL3.PLL3FRACN = 0U;
+ HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
+#endif
/* Turn on LTDC peripheral clock */
err = clock_control_on(DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE),
(clock_control_subsys_t) &config->pclken); same overlay and showing color bars as above. Expected behavior Logs and console output CommentsEnvironment (please complete the following information):
Additional context < 0x58024420: 0x00000040 0x00000000 0x00520052 0x01ff0808
---
> 0x58024420: 0x00000040 0x00000000 0x00520052 0x01ff0bd8 Set < 0x58024420: 0x00000040 0x00000000 0x00520052 0x01ff0808
---
> 0x58024420: 0x00000040 0x00000000 0x00520052 0x01ff0108 rcc 0x2C: 0x01ff0808 = Bad Case rcc 0x2C: 0x01ff0108, 0x01ff0bd8 = Better Case Could this be the problem? I'm lost... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Just a hint that will help you reading registers in gdb: https://github.com/1udo6arre/svd-tools. |
Beta Was this translation helpful? Give feedback.
-
@dariis Since this is not an actual zephyr bug (DSI not supported) I'll move this to discussion, but github remains a good place to discuss. |
Beta Was this translation helpful? Give feedback.
-
@dariis I've just seen you pushed DSI driver #53044. A big thanks. |
Beta Was this translation helpful? Give feedback.
-
Try to get it upstream gave me more insight and solved my problem. Hint: In my case LVGL does not work with RGB888 only with RGB565 or ARGB8888! |
Beta Was this translation helpful? Give feedback.
Try to get it upstream gave me more insight and solved my problem.
Thanks to all of you, specially @erwango @carlescufi @gmarull
Hint: In my case LVGL does not work with RGB888 only with RGB565 or ARGB8888!