Skip to main content
jsmit.2
Associate
June 1, 2019
Question

Hi there, does anyone know whether stm32F303re has FSMS? If yes, how could I enable it so that I would be able to interface a TFT LCD LGDP display?

  • June 1, 2019
  • 14 replies
  • 3004 views

I currently have a TFT LGDP display and I can't figure out how to hook it up with my stmf303 re.

This topic has been closed for replies.

14 replies

turboscrew
Senior III
June 1, 2019

Datasheet says it has FSMC (I guess you meant that).

I don't know what kind of LCD you are talking about, but for 16-bit parallel interface, NOR flash interface is usually used, if the timing (especially hold time) allows.

If not, then NAND flash interface. I think, CubeMX doesn't support that kind of (mis)use, but you can configure a NOR/NAND flash interface in CubeMX, and in the code, reconfigure the pins not needed for the LCD interface for something else (like address pins and latch strobes). You also need one GPIO for selecting between register and data.

jsmit.2
jsmit.2Author
Associate
June 2, 2019

It's about OpenSmart 2.0inch TFT LCD LGDP 4524, here is the link -> https://www.google.com/url?sa=i&source=images&cd=&cad=rja&uact=8&ved=2ahUKEwjt7uvXgcriAhUN6aQKHS-zBJwQjhx6BAgBEAM&url=https%3A%2F%2Fwww.amazon.com%2FTouch-Screen-Breakout-Board-Arduino%2Fdp%2FB07KF2SJK3&psig=AOvVaw2VNYpoXvehdQq6ENW2FJW6&ust=1559537928203118 .

Yes I read in datasheet that this mcu has FMC, but either it is deactivated or something else, because I didn't see FSMC as a option in CubeMX to set it up. Other way is just to use arduino like libraries, sincerely I don't like to deal with arduino stuff.

turboscrew
Senior III
June 2, 2019

Oops. It looks like you don't have it. The pin count is too small.

The bigger packages have it (100-pin , 144-pin).

Tesla DeLorean
Guru
June 2, 2019

Perhaps look at design of STM32303E-EVAL board

https://www.st.com/en/evaluation-tools/stm32303e-eval.html

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
June 2, 2019

Reference manual states: (p168 / RM0316)

Only the STM32F303xD/E and STM32F398xE devices include the FSMC.

turboscrew
Senior III
June 2, 2019

There's also inconsistent use of 'FSMC' and 'FMC' in the data sheet.

The table "Table 2. STM32F303xD/E family device features and peripheral counts" shows that STM32F303Rx doesn't have it, but STM32F303Vx and STM32F303Zx do.

jsmit.2
jsmit.2Author
Associate
June 2, 2019

Is there other way of interfacing this TFT LCD LGDP4524 with stm32 board? Maybe via SPI?

Tesla DeLorean
Guru
June 2, 2019

Review the manual describing the interfacing methods

https://www.displayfuture.com/Display/datasheet/controller/LGDP4524.pdf

and the manual for whatever carrier board you have it mounted too.

One could presumably just create a bus using GPIO pins and bit-bang the bus protocol.

Can you get access to strap the IM pins to select an SPI interface option?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
jsmit.2
jsmit.2Author
Associate
June 4, 2019

The problem is that I'm trying to launch a tft lcd for the first time and I'm not sure datasheet will provide me enough hints as it is designed in a roundabout way(at least it seems like that to me). Did anybody make a similar project?

turboscrew
Senior III
June 5, 2019

I wrote some code for a QVGA-display using 8080-interface (RGB565). I used FMC NAND of F427, because otherwise I couldn't get the data hold time long enough.