Confused about LTDC Pin Init in STM32F429i-Disc1 - Wrong Alternate Function Set but LCD Still Works?
Hi everyone,
I'm working with the STM32F429i-Disc1 board, writing code from scratch, and I encountered something odd. I created an empty project for the LCD, and during the LTDC pin initialization, I mistakenly set the alternate function (AF) to the wrong value.
According to the STM32F429-Disc1 schematic, the R3, R6, G3 & B4 pins of the LCD are connected to PB0, PB1, PG10, and PG12, respectively. As per the STM32F429xx datasheet, the alternate function to configure these pins as LCD_R3, LCD_R6, LCD_G3, and LCD_B4 should be AF9. However, by mistake, I set the alternate function to AF14, which is meant for other peripherals.

The strange thing is, the code still works! :\ I'm trying to figure out why. Shouldn't this wrong AF setting prevent the LCD from working properly?
Does this mean that the effect of setting these pins (PB0, PB1, PG10, and PG12) to AF14 is null, or is something else happening behind the scenes?
Any insights or explanations would be really helpful!
Thanks in advance.

