Question
Porting STM32F412 FSMC example to STM32F407 for Driving TFT LCD
Posted on October 25, 2016 at 16:47
I am trying to port the ''STemWin_HelloWorld'' example in Applications section of ''STM32F412G-Discovery'' board of ''stm32cube_fw_f4_v1130 '' package.
The code is originally for STM32F412G which uses FSMC peripheral to interface to LCD. I am trying to adapt to STM32F407ZET6. I have chnaged to startup file for my chip as well as the CMSIS file for the 407 family. the clock I brought to same speed as the original example. LED blinking part of this example is runing ok in my new board. But the FSMC part seems not communication with TFT. I just tried by reading some registers of my LCD controller which is having some values by default. but FSMC access always returns 0 in my debugger. I am stuck here. Do we need any chnage in the FSMC code of STM32F412 when the destination is STM32F407? . As far as I can understand the original code uses function names with prefix FMC, but may be because the original code may be from a chip with FMC .Also FMC is only an enhancement of FSMC and many defines of FMC are just like a wrapper over FSMC parameters. Any clues for my problem? #!stm32f4discovery #fsmc #fmc