2021-08-03 01:20 PM
Hello! I am working on a custom board that has an STM32F469ZI to control a touchscreen by focusLCDs (E43RB-FW405-c) . We have the pin that controls the backlight of the touchscreen on pin PB0 but in cubeMX I am getting a pin conflict between LTDC and this gpio that I have set. Apparently the LTDC needs pin PB0 for LTDC_G1 or LTDC_R3. I have configured the 4 LTDC control signals (LTDC_HCLK, LTDC_DE, LTDC_VSYNC, and LTDC_HSYNC) manually in cubeMX and made sure the polarities and clock timings were correct to see if it could work but to no avail. Is this pin absolutely needed by LTDC to control the framebuffer? If so, would this mean we would have to change the backlight pin to something different?
I am following the touchGFX-documentation guide that helps set up boards for touchGFX. At this moment, I am only able to turn the backlight of the screen which is really dim. In the guide, LTDC is the only configuration that is set up before step 3 so I am not even able to change the background color to a solid color through cubeIDE. Eventually this screen will be running a UI that will be set up in touchGFX so I really need to know if the LTDC requires this pin. Thank you for any help you are able to give.
2021-08-03 04:31 PM
It's required if you need the R3 or G1 bits, unless you're using DSI mode. There aren't alternative pins for it.
Yes, it means you need to change the pin you're using.
Typically mapping the pinout is the first thing you do when laying out a board.
2021-08-04 12:29 AM
Your LCD is E43RB-FW405-c , MIPI DSI interface, then on STM you dont use any LTDC pin.
2021-08-04 09:49 AM
2021-08-04 09:56 AM
2021-08-04 11:16 AM
In normal situation LTDC or TouchGFX havent with backlight control and too CubeIDE havent any definition for this control.
Backlight is controlled by user code or on some displays can be controlled in driver IC.
In basic design is pin for control backlight choiced to an PWM TIM output from STM.
And DSI stay off is normal situation, when you dont add driver config to generated code... usw DSI isnt simple
2021-08-04 11:32 AM
2021-08-04 11:44 AM
Example end init code
HAL_DSI_ShortWrite(&hdsi, 0, DSI_DCS_SHORT_PKT_WRITE_P0, DSI_SET_DISPLAY_ON , 0);
LCD_LIGHT_GPIO_Port->BSRR = LCD_LIGHT_Pin;
And you need check , that GPIO init is called before and properly for your port used pin.
Stop search incompatibility and start check code and schematics.