[libmaple] FSMC LCD 16bit

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
exider
Posts: 9
Joined: Wed Oct 04, 2017 12:58 pm

Re: [libmaple] FSMC LCD 16bit

Post by exider » Sat Oct 14, 2017 6:58 pm

@stevestrong
Could any of you try to copy the Adafruit_GFX_AS lib from F1 to F4 lib directory?
Then replace in the 16 bit lib header file

Code: Select all

#include <Adafruit_GFX.h>

by

Code: Select all

#include <Adafruit_GFX_AS.h>

and tell me wheter it builds and works?
Yes, it builds and it works!

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

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Sat Oct 14, 2017 7:05 pm

Nice, thanks for letting me know.
Then I suggest to use this.

EDIT
I modified the lib to get rid of compiler warnings, find attached here.
Place it under Arduino_STM32/STM32F4/libraries.
Attachments
Adafruit_GFX_AS library for F4.7z
(15.39 KiB) Downloaded 13 times

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

Re: [libmaple] FSMC LCD 16bit

Post by zmemw16 » Sat Oct 14, 2017 9:52 pm

yes, i've checked udev scripts and the resultant /dev/tty* permissions, all the same as on my other systems.

@stevstrong
as seems usual for me, i just get the text output via a usb serial block on pa9/pa10, serial usb (ttyACM0) nothing, nothing on tft lcd.

am i correct in thinking the only changes required for using the ze/zg variants would be setting the ne[1-4] block and the address line a6, a10, a18 etc? i've multiple available of those, one(?2?) of the vet

@both can you post a picture of your setups ?
optional :-) maybe screen captures of the tools drop down or just a list of what's set ... ...

maybe try it on windows, like that's going to happen, ok maybe just sleep

stephen

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

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Sun Oct 15, 2017 3:52 pm

Here is a short video of my setup: viewtopic.php?f=39&t=2298#p31037
My settings? Just the basic stuff: Win 10, Arduino IDE 1.6.12, Tools->Board: Generic F407VE series, USB serial active.
+ my repo, and my Adafruit 16 bit lib with activated FSMC, and the Adafruit_GFX_AS lib for F4, as attached in my other post above. That's all.

And a correct wiring... ;)

I don't know the ze/zg boards.

EDIT
@stephen, are you sure your LCD board is set to 16 bit parallel access?

User avatar
StrangerM
Posts: 6
Joined: Fri Sep 29, 2017 12:24 pm
Location: St.-Petersburg, Russia

Re: [libmaple] FSMC LCD 16bit

Post by StrangerM » Sun Oct 15, 2017 4:10 pm

Hi. I am sorry. I used Arduino 1.8.5 in WinXP. I modified Adafruit_TFTLCD_16bit_STM32 for compilation. https://yadi.sk/d/5gzxn-wu3NmaDk

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

Re: [libmaple] FSMC LCD 16bit

Post by zmemw16 » Sun Oct 15, 2017 6:04 pm

stevestrong wrote:
Sun Oct 15, 2017 3:52 pm
EDIT
@stephen, are you sure your LCD board is set to 16 bit parallel access?
stev have you echoed the 16bit changes into the 8bit ?
that would seem the easiest route.

2017-10-15 18.51.05.png
2017-10-15 18.51.05.png (87.52 KiB) Viewed 101 times
on the back of the display the missing resistors are R1+R6*, R4+R7*,
2nd group is R10*+R11, R12*+R13, R14*+R15, finally R17 above HP2046
* is the fitted side.

wag 1st pair cpu interface 8080/6800/other, middle right
wag 2nd set as colour mode selection ? bottom right
no signal named ALE or similar, no latch IC

@exider, you said exactly same hardware, is the back of your display the same as in that <horrible> picture?

stephen

User avatar
StrangerM
Posts: 6
Joined: Fri Sep 29, 2017 12:24 pm
Location: St.-Petersburg, Russia

Re: [libmaple] FSMC LCD 16bit

Post by StrangerM » Mon Oct 16, 2017 12:09 am

It`s the back of my display https://yadi.sk/i/cQu3UM1X3Nn3wZ

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

Re: [libmaple] FSMC LCD 16bit

Post by zmemw16 » Mon Oct 16, 2017 3:15 am

i'd say identical, bad, bad news :( :(

i went looking via my order list on aliexpress for the display, current product is about 30% of the backside components.

could you attach your binary with a rename extension of dot txt
and maybe the source sketch as well ?

this has to be something stupid or so, so basically fundamental i'm completely missing it.
have i mentioned i can kill a system unit, stm32 board or display with a look :D

stephen

User avatar
StrangerM
Posts: 6
Joined: Fri Sep 29, 2017 12:24 pm
Location: St.-Petersburg, Russia

Re: [libmaple] FSMC LCD 16bit

Post by StrangerM » Mon Oct 16, 2017 12:33 pm

Look throught attentivly my previous attach. There is everything in it - my Adafruit_TFTLCD_16bit_STM32 and arduino_build_857036.

User avatar
StrangerM
Posts: 6
Joined: Fri Sep 29, 2017 12:24 pm
Location: St.-Petersburg, Russia

Re: [libmaple] FSMC LCD 16bit

Post by StrangerM » Mon Oct 16, 2017 12:53 pm

In my project Ichanged Adafruit_SPITFT.cpp .

Code: Select all

#include "Adafruit_SPITFT.h"
#ifndef ARDUINO_STM32_FEATHER
  #include "pins_arduino.h"
#ifndef RASPI
   // #include "wiring_private.h" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#endif
#endif
#include <limits.h>

#include "Adafruit_SPITFT_Macros.h"

Post Reply