Skip to main content
Associate II
June 30, 2024
Solved

Nucleo-H743ZI2 cannot use DCMI and LTDC at the same time

  • June 30, 2024
  • 2 replies
  • 2577 views

Hello,

I am trying to use DCMI to connect the camera and display the video on LCD by LTDC. But it seems to me STM32CubeIDE does not allow me to active both DCMI and LTDC at the same time, because PA6 pin conflicts. And it seems the PA6 cannot be mapped to any other pin under DCMI and LTDC on the board Nucleo-H743ZI2. Does anyone have the same experience? How to use DCMI and LTDC at the same time? If the ST new released board does not have this conflict issue? thx.

屏幕截图 2024-06-30 114237.png

 

图片1.png

Best answer by MM..1

Yes this is good example MX isnt flexible and require force unlock settings. Now simple way is generate code with LTDC only store msp and mx init parts in user code, then disable ltdc and enable DCMI and or do same...

@GaetanGodart and next ST Boys and girls

2 replies

AScha.3
Super User
June 30, 2024

Hi,

from ds , pins :

AScha3_0-1719731297893.png

If no remap for LCD_G2 possible - you cannot use both here.

For example : remap on PH13 or PJ9 - but need case with more pins, that has PH or PJ port. (LQFP176 or 208 )

To see in Cube, what remap possible, activate the module (LCD here), hold CTRL on keybord and click on the pin , you want tp remap: then all possible pins flashing. (If nothing flashes - no remap possible on this case.)

"If you feel a post has answered your question, please click ""Accept as Solution""."
MM..1
Chief III
June 30, 2024

Simply remove G2 from LTDC and use in DCMI. This convert RGB565 to RGB555 ... for real use more pin package on your pcb or nucleo if exist...

JiamingAuthor
Associate II
June 30, 2024

The CubeMX does not allow me to just remove G2 from LTDC. I first select RGB565, then PA6 (LTDC_G2) is set up.

屏幕截图 2024-06-30 170647.png

Then I reset PA6, but the whole LTDC will be disabled. Shall I manually remove G2 in the code? Thx.

屏幕截图 2024-06-30 170957.png

MM..1
MM..1Best answer
Chief III
June 30, 2024

Yes this is good example MX isnt flexible and require force unlock settings. Now simple way is generate code with LTDC only store msp and mx init parts in user code, then disable ltdc and enable DCMI and or do same...

@GaetanGodart and next ST Boys and girls