[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 » Mon Oct 16, 2017 1:09 pm

@ zmemw16

I'd say, my LCD is identical to yours.

https://photos.app.goo.gl/1FFPgePQX46PHCHk2

Ignore the connected GPIO cables. They are for MPU9250 10 DOF sensor board and are irrelevant to the LCD.
The LCD plugs into the tft connector.
Attachments
graphicstest.ino.bin.txt
(42.29 KiB) Downloaded 23 times

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

Re: [libmaple] FSMC LCD 16bit

Post by acronis » Sun Feb 18, 2018 4:10 am

Hi Steve.
I downloaded the latest library for Your display (FSMC LCD 16bit)

and now there are compile-time errors.

Code: Select all

In file included from C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src\Adafruit_common.h:5:0,

                 from C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src\Adafruit_TFTLCD_16bit_STM32.cpp:7:

C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src\Adafruit_TFTLCD_16bit_STM32.cpp: In member function 'void Adafruit_TFTLCD_16bit_STM32::reset()':

C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:137:48: error: 'gpio_reg_map' has no member named 'CRL'

   #define setWriteDir() { TFT_DATA_PORT->regs->CRL = 0x33333333; TFT_DATA_PORT->regs->CRH = 0x33333333; }   // set the bits as output

                                                ^

C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src\Adafruit_TFTLCD_16bit_STM32.cpp:105:2: note: in expansion of macro 'setWriteDir'

  setWriteDir();

  ^

C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:137:87: error: 'gpio_reg_map' has no member named 'CRH'

   #define setWriteDir() { TFT_DATA_PORT->regs->CRL = 0x33333333; TFT_DATA_PORT->regs->CRH = 0x33333333; }   // set the bits as output

                                                                                       ^

C:\Users\V\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src\Adafruit_TFTLCD_16bit_STM32.cpp:105:2: note: in expansion of macro 'setWriteDir'

  setWriteDir();
I had no compilation errors in the previous version of this library.
Please tell me how to fix it

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

Re: [libmaple] FSMC LCD 16bit

Post by stevestrong » Sun Feb 18, 2018 9:06 am

Which target/board do you use? Did you correctly selected it from the Arduino IDE menu option?
With FSMC enabled or without?

EDIT
OK, I've figure it out, F4 without FSMC shows the symptom. I am investigating the issue.

But if you use F4, why don't you enable FSMC by enabling this line: https://github.com/stevstrong/Adafruit_ ... TM32.h#L12?

EDIT2
I just checked in a fix for that. It now compiles error free, but the functionality is not tested. Let me know if it works.

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

Re: [libmaple] FSMC LCD 16bit

Post by acronis » Sun Feb 18, 2018 9:37 am

Steven, Thank you so much.

Code: Select all

#define USE_FSMC 1 
It really solved the problem and a compile-time error is no more !
It's great !

Post Reply