STM32F746-DISCO FMC/LTDC pin configurations Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
cpu20
Posts: 7
Joined: Fri Apr 28, 2017 4:39 pm
Has thanked: 1 time
Been thanked: 2 times

STM32F746-DISCO FMC/LTDC pin configurations

Post by cpu20 »

Hello,
- I have been debugging the problems that occurred while using uGFX together with ChibiOS on the STM32F746-DISCO platform.
After allot of searching I have come to the conclusion that the problem is located in the pin configurations. Two pins are configured differently than expected.
- This is with ChibiOS_16.1.7
- Compiled with gcc-arm-none-eabi-5_4-2016q2
- The problem is that the pins PG8/FMC_SDCLK standard is configured as input floating. But for the SDRAM on the board to work this pin should be configured as FMC_SDCLK (alternate function 12).
The second problem is that the pin PI12/LCD_DISP_PIN is configured as LCD_HSYNC by setting it to alternate function 14. But this pin should be configured as a normal highspeed output.
A last problem is that the LTDC clock is configured to 48MHz (display takes 12-20MHz max) in the mcuconf.h included in the demo code. This can easily be fixed by setting STM32_PLLSAIDIVR to STM32_PLLSAIDIVR_DIV4, changing the clock to 12MHz.
- The effect of these two pins being wrongly configured is the whole display not working. Setting these correctly in the board files (attached) makes the display work!
Patched files should be included.
Attachments
PatchedChibiOSFiles.zip
(15.71 KiB) Downloaded 538 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F746-DISCO FMC/LTDC pin configurations

Post by Giovanni »

bump
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F746-DISCO FMC/LTDC pin configurations

Post by Giovanni »

Hi,

I committed the fix in trunk and will be released as 17.6.0, note that mcuconf.h settings changed a bit. This will not be backported to 16.1.x.

Giovanni
cpu20
Posts: 7
Joined: Fri Apr 28, 2017 4:39 pm
Has thanked: 1 time
Been thanked: 2 times

Re: STM32F746-DISCO FMC/LTDC pin configurations

Post by cpu20 »

That is very good news!
Thanks for committing the fix!
Post Reply