Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32f429i-dicovery ltdc example gpio setup #243

Open
rooi-oog opened this issue May 9, 2023 · 1 comment
Open

stm32f429i-dicovery ltdc example gpio setup #243

rooi-oog opened this issue May 9, 2023 · 1 comment

Comments

@rooi-oog
Copy link

rooi-oog commented May 9, 2023

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

@tonychen0924
Copy link

tonychen0924 commented Sep 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants