libopencm3-examples icon indicating copy to clipboard operation
libopencm3-examples copied to clipboard

stm32f429i-dicovery ltdc example gpio setup

Open rooi-oog opened this issue 2 years ago • 1 comments

Hi

I'm trying to build an LTDC example for stm32f429 and I found a mistake in the code. In file examples/stm32/f4/stm32f429i-discovery/lcd-dma/lcd-dma.c:101

/* set GPIO pin modes */
gpio_mode_setup(GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE,
	GPIO0 | GPIO1 | GPIO8 | GPIO9 | GPIO10 | GPIO11);
gpio_set_output_options(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ,
                        ^^^^^^
		GPIO0 | GPIO1 | GPIO8 |
		GPIO9 | GPIO10 | GPIO11);
gpio_set_af(GPIOB, GPIO_AF9, GPIO0 | GPIO1);
gpio_set_af(GPIOB, GPIO_AF14, GPIO8 | GPIO9 | GPIO10 | GPIO11);

It's obvious that this is a mistake. And this mistake continues to repeat in every GPIO group.

Thanks

rooi-oog avatar May 09 '23 16:05 rooi-oog

I try to build normally. My environment is ubuntu22.04 + arm-none-eabi-acc 10.3 . And My board is Apollo stm32F429IGT6 .

tonychen0924 avatar Sep 22 '23 02:09 tonychen0924