Skip to main content
roythomas
Associate
Oct 25, 2016 2:47 PM UTC
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
This topic has been closed for replies.

3 replies

slimen
Visitor II
Oct 25, 2016 5:14 PM UTC
Posted on October 25, 2016 at 19:14

Hello,

Looked at

http://www.st.com/content/ccc/resource/technical/document/application_note/85/ad/ef/0f/a3/a6/49/9a/CD00201397.pdf/files/CD00201397.pdf/jcr:content/translations/en.CD00201397.pdf

 it may be helpful for you, to understand how you should configure FSMC to work with an TFT LCD. 

Regards

roythomas
roythomasAuthor
Associate
Oct 26, 2016 6:10 AM UTC
Posted on October 26, 2016 at 08:10

I am referrring to that Note. Note uses 100Pin chip . My chip is 144 pin. Somewhere it says the FSMC in those chips have slight difference. But cant figure out still.

Cobus Hoffmann
Associate II
Feb 20, 2017 12:38 AM UTC
Posted on February 20, 2017 at 00:38

I am also using an stm32f407, and I am unable to toggle the Ax pin so that I can write Data to my ili9341 TFT LCD. Can anyone help me out?