2024-06-29 08:45 PM
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.
Solved! Go to Solution.
2024-06-30 02:59 AM
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
2024-06-30 12:17 AM - edited 2024-06-30 12:23 AM
Hi,
from ds , pins :
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.)
2024-06-30 12:28 AM
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...
2024-06-30 02:11 AM
The CubeMX does not allow me to just remove G2 from LTDC. I first select RGB565, then PA6 (LTDC_G2) is set up.
Then I reset PA6, but the whole LTDC will be disabled. Shall I manually remove G2 in the code? Thx.
2024-06-30 02:59 AM
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
2024-06-30 08:47 PM
Thank you for your introduction, seems this is the only way.
2024-06-30 11:54 PM
Hi,
just another way to try it with Cube:
make new project, but set H743II (176pin LQFP ); set same clock tree and other things as on H743ZI ;
now set on LTDC the G2 to PH13 ; then set DCMI ...
now LTDC and DCMI active, here flashed on H743ZI ; now PH13 is used (going to nirwana...):
Try...