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.
STM32F746-DISCO FMC/LTDC pin configurations Topic is solved
STM32F746-DISCO FMC/LTDC pin configurations Topic is solved
- Attachments
-
- PatchedChibiOSFiles.zip
- (15.71 KiB) Downloaded 245 times
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32F746-DISCO FMC/LTDC pin configurations
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
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
Who is online
Users browsing this forum: No registered users and 48 guests