2018-12-06 05:30 PM
Hi. Believe to have found a typo inside the STM32F429 datasheet (document DocID024030 Rev 10). Studying the use of the STM32F429NI DISC1 Kit and the use of the onboard TFT display. The source code is noting that the CPU is configured into AF14 (alternate function 14) which sounds correct. Yet the RGB pins are not correctly mapped under AF14 inside the datasheet.
Specifically, Table 12 is showing that:
PB0 = LCD_R3 (if using AF9) but should be PB0 = LCD_R3 (if using AF14)
PB1 = LCD_R6 (if using AF9) but should be PB1 = LCD_R6 (if using AF14)
The IAR source code mapping looks to be correct as it is working:
and same typo in the STM32F750x8 datasheet?
Please correct if my error.
Thanks.
Solved! Go to Solution.
2018-12-07 02:51 AM
Hello @Mon2 ,
The datasheet seems correct, and the code in the cube mentioned AF9 for PB0 (LCD_R3) and PB1 (LCD_R6)
/* GPIOB configuration */
GPIO_InitStructure.Pin = GPIO_PIN_0 | GPIO_PIN_1;
GPIO_InitStructure.Alternate= GPIO_AF9_LTDC;
HAL_GPIO_Init(GPIOB, &GPIO_InitStructure);
Kind Regards,
Imen
2018-12-07 02:05 AM
Cube also maps uses AF == 0 for LCD_R3/PBO and LCD_R6/PB1
2018-12-07 02:18 AM
Which Cube? Where?
2018-12-07 02:51 AM
Hello @Mon2 ,
The datasheet seems correct, and the code in the cube mentioned AF9 for PB0 (LCD_R3) and PB1 (LCD_R6)
/* GPIOB configuration */
GPIO_InitStructure.Pin = GPIO_PIN_0 | GPIO_PIN_1;
GPIO_InitStructure.Alternate= GPIO_AF9_LTDC;
HAL_GPIO_Init(GPIOB, &GPIO_InitStructure);
Kind Regards,
Imen
2018-12-07 03:16 AM
Thank you all for the replies. Further down the same TouchGFX generated init code, see that PB0 / PB1 are being applied with AF9 which makes sense.
Did not know till now that some pins could be mapped with AFx while others as AFy. Nice.