[libmaple] FSMC LCD 16bit

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
stevestrong
Posts: 1511
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Fri Jul 07, 2017 3:27 pm

OK, it looks like everything should work as expected.

I had 3 wires which were not coming from the TFT header:
- reset - I defined a separate reset pin in the 16 bit LCD library, but I tried and it also works when connected directly to the board reset pin (default for the board's TFT header)
- FSMC_A18 - I had it connected to PD13 on the J3 header pin 42, it was the time when I did debug. Now I connected it directly to FSMC_A18 on the TFT header and it still works.
- 5v - my TFT board requires 5 V so I have to connect it to J2 header pin 1.
The rest of pins from the TFT board are wired to the appropriate TFT header pins of the black F407V board.

So, Stephen, I can just recommend to play a bit with those DATAST and ADDSET values as suggested by Pito.
Just to be sure I ask again, have you tried the BIN file I posted?
Last edited by stevestrong on Fri Jul 07, 2017 3:42 pm, edited 3 times in total.

User avatar
Pito
Posts: 1500
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [libmaple] FSMC LCD 16bit

Post by Pito » Fri Jul 07, 2017 3:40 pm

@steve: I may try with my tft as well, it is SSD1289 16bit one however.. I've got it working with MultiLCD library https://github.com/stanleyhuangyc/MultiLCD on F1 (libmaple, 16bit portB) which is based on utft (data not via FSMC). Here is the 1289 driver with tft init and a few i/o primitives I modded. Maybe easy to port when someone knows how to..
SSD1289.rar
(3.9 KiB) Downloaded 5 times
Pukao Hats Cleaning Services Ltd.

zmemw16
Posts: 1371
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] FSMC LCD 16bit

Post by zmemw16 » Fri Jul 07, 2017 4:16 pm

i'm reminded of work, telephone 'can i speak to chris or steve'
'which one, we've 7 chris's and 6 steve's'

on leaving work at 4:00pm, we'd take a quick'ish 60mls car ride to purchase computer bits in Manchester and they shut at 5:15pm. 90% motorway = 70mph, maybe the speedo read on the low side.
we needed a 'company name' for the sellers billing, S Cubed comprising the 3 steves involved.

got the io & disp connections done now in 6 files xcf via Gimp 5.9M

re: bin
istr trying it as i recall looking for st-flash in the history file.
now be honest, how many zeros after the 0x8 ?
pretty sure it didn't do anything, any colour or any sort of flash i'd remember that :)
i'd be ecstatic if i just got a white screen

stephen

stevestrong
Posts: 1511
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Fri Jul 07, 2017 8:08 pm

I attached a video to my first post in this thread.
https://www.youtube.com/watch?v=cQXc7nye6Vo
(how to attach it online?)

acronis
Posts: 107
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] FSMC LCD 16bit

Post by acronis » Thu Jul 20, 2017 7:46 am

Hello.
Tell me how to clear the screen to not flicker ?
I need to display the stitching time and if I do a clean fill of the screen (the tft.fillScreen(BLACK)) - can be seen flickering.
Flickering a little , but its noticeable

stevestrong
Posts: 1511
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Thu Jul 20, 2017 9:39 am

acronis wrote:
Thu Jul 20, 2017 7:46 am
I need to display the stitching time
sorry, I don't really understand what you mean, could you please detail it.
If you want to erase only a text portion from the screen then I would actually write the same text using the background color as foreground color. This way you don't need to clear the whole display, but you have to keep track of the text information.
Or overwrite the same line with number of spaces identical with the number of letters in the text.
Last edited by stevestrong on Thu Jul 20, 2017 9:44 am, edited 3 times in total.

acronis
Posts: 107
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] FSMC LCD 16bit

Post by acronis » Thu Jul 20, 2017 9:41 am

Great !
I don't came to this idea ! I'll try it.
Thanks for Your continued help and tips !

Post Reply