[libmaple] FSMC LCD 16bit

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
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 5:49 am

oh thank you, i'm not alone any more, same target and screen, using st-link blue/cream egg; even better it's not down to my lack of Linux knowledge.
Debian Stretch 9.x on i7 laptop and the 'stock' binary distro of Arduino 64bit 1.8.5, not had any need to write device drivers isa & pci since 1996.

i did try the posted bin file, nothing at all.

uncommented line 15 to allow FSMC and exactly the same message with wiring_private.h

steves repo Arduino_STM32 as of 12-10-2017 2315 and his doesn't list the Black F407VE board, consequently selected generic F407. SPI interfaces might become confusing though later on.

with his Adafruit_TFTLCD_16bit_STM32 as of 12-10-2017 2314

a minor issue is i'm not sure where to source the Adafruit_GFX library files from, so i got it from github/adafruit ?
i keep thinking i'd need to use the Adafruit_GFX_STM32 version?

@stevstrong would you please comment on the above if i've got it wrong :)
does the gcc pre-processor handle the platform.txt and boards.txt files ?

i've set all messages for compiler and upload in preferences.txt, so no apologies for the length :!:

Code: Select all

Arduino: 1.8.5 (Linux), Board: "Generic STM32F407V series, USB inactive, STLink, Smallest (default)"

/home/stephen/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/stephen/arduino-1.8.5/hardware -hardware /home/stephen/.arduino15/packages -hardware /home/stephen/sketchbook/hardware -tools /home/stephen/arduino-1.8.5/tools-builder -tools /home/stephen/arduino-1.8.5/hardware/tools/avr -tools /home/stephen/.arduino15/packages -built-in-libraries /home/stephen/arduino-1.8.5/libraries -libraries /home/stephen/sketchbook/libraries -fqbn=Arduino_STM32:STM32F4:generic_f407v:usb_cfg=usb_nc,upload_method=STLinkMethod,opt=osstd -ide-version=10805 -build-path /tmp/arduino_build_524430 -warnings=all -build-cache /tmp/arduino_cache_279927 -prefs=build.warn_data_percentage=75 -verbose /home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/examples/graphicstest/graphicstest.ino
/home/stephen/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/stephen/arduino-1.8.5/hardware -hardware /home/stephen/.arduino15/packages -hardware /home/stephen/sketchbook/hardware -tools /home/stephen/arduino-1.8.5/tools-builder -tools /home/stephen/arduino-1.8.5/hardware/tools/avr -tools /home/stephen/.arduino15/packages -built-in-libraries /home/stephen/arduino-1.8.5/libraries -libraries /home/stephen/sketchbook/libraries -fqbn=Arduino_STM32:STM32F4:generic_f407v:usb_cfg=usb_nc,upload_method=STLinkMethod,opt=osstd -ide-version=10805 -build-path /tmp/arduino_build_524430 -warnings=all -build-cache /tmp/arduino_cache_279927 -prefs=build.warn_data_percentage=75 -verbose /home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/examples/graphicstest/graphicstest.ino
Using board 'generic_f407v' from platform in folder: /home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4
Using core 'maple' from platform in folder: /home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4
Detecting libraries used...
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "/tmp/arduino_build_524430/sketch/graphicstest.ino.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "/tmp/arduino_build_524430/sketch/graphicstest.ino.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/tmp/arduino_build_524430/sketch/graphicstest.ino.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src/Adafruit_TFTLCD_16bit_STM32.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src/hx8347g.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src/hx8357x.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src/ili932x.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src/ili9341.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_GFX/Adafruit_GFX.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "/home/stephen/sketchbook/libraries/Adafruit_GFX/Adafruit_SPITFT.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/libraries/SPI/src" "/home/stephen/sketchbook/libraries/Adafruit_GFX/Adafruit_SPITFT.cpp" -o "/dev/null"
"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000 -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10805 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC -DVECT_TAB_FLASH -DUSER_ADDR_ROM=(uint32)0x08000000  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32/src" "-I/home/stephen/sketchbook/libraries/Adafruit_GFX" "-I/home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/libraries/SPI/src" "/home/stephen/sketchbook/libraries/Adafruit_GFX/Adafruit_SPITFT.cpp" -o "/tmp/arduino_build_524430/preproc/ctags_target_for_gcc_minus_e.cpp"
/home/stephen/sketchbook/libraries/Adafruit_GFX/Adafruit_SPITFT.cpp:21:32: fatal error: wiring_private.h: No such file or directory
     #include "wiring_private.h"
                                ^
compilation terminated.
Using library Adafruit_TFTLCD_16bit_STM32 at version 1.0.0 in folder: /home/stephen/sketchbook/libraries/Adafruit_TFTLCD_16bit_STM32 
Using library Adafruit_GFX at version 1.2.2 in folder: /home/stephen/sketchbook/libraries/Adafruit_GFX 
Using library SPI at version 1.0 in folder: /home/stephen/sketchbook/hardware/Arduino_STM32/STM32F4/libraries/SPI 
exit status 1
Error compiling for board Generic STM32F407V series.
stephen

exider
Posts: 9
Joined: Wed Oct 04, 2017 12:58 pm

Re: [libmaple] FSMC LCD 16bit

Post by exider » Sat Oct 14, 2017 6:10 am

My wild guess would be : it would be best if someone can provide a working docker image
and share it here will be best!
hanks

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 8:26 am

@all,
I don't know which sketch are you using. I have tested the graphicstest example from my Adafruit_TFTLCD_16_STM32 bit lib.
Please use this example!
This way the error messages related to "wiring_private.h" will disappear, the SPI lib will (and should) not be part of the project.

Btw, I had indeed 2 places with typo error (used FSCM instead of FSMC), which I have corrected now.
So please check out the latest version form here: https://github.com/stevstrong/Adafruit_ ... 6bit_STM32
and the sketch: https://github.com/stevstrong/Adafruit_ ... cstest.ino

@exider,
First of all, there is a BIN file attached to this post: http://stm32duino.com/viewtopic.php?f=39&t=2298#p31037
Second, what means "I have changed"

Code: Select all

#define USE_FSMC 1
Did you activate it (uncommented) to use FSMC, exactly in this form?
I suspect you have commented out (deactivate) the line, because you get warnings related to control pins, which in FSMC case should not be there.
That means, you want to use pure GPIO toggling, and not FSMC, right?
In this case, please be aware, that the library requires all 16 bit data mapped to the same GPIO port. This is not the case when you use the LCD plugged into the display socket of the black F407V board. So the software using GPIO toggling will not work four you anyway!

Now, according to your build log, you have several libraries detected by Arduino IDE. Please be sure that you made the right settings in the used one. Alternatively, you could delete/ZIP the inactive one(s).


@stephen,
it is correct, there is no "Black F407VE" board listing in Arduino, only the generic, sou you have the selected the right one.
The common comments above should solve your build issue.

exider
Posts: 9
Joined: Wed Oct 04, 2017 12:58 pm

Re: [libmaple] FSMC LCD 16bit

Post by exider » Sat Oct 14, 2017 3:49 pm

I have used graphigtest example.

@ stevestrong
"Second, what means "I have changed"
I have uncommented it , i.e. use it !


I guess, that typo has a lot to do with the error as dew to it , it wasn't using fsmc ..

Will try out in a minute and let you know.

Thank you for looking into it.

exider
Posts: 9
Joined: Wed Oct 04, 2017 12:58 pm

Re: [libmaple] FSMC LCD 16bit

Post by exider » Sat Oct 14, 2017 4:27 pm

found another typo...

just above line 157 in Adafruit_TFTLCD_16bit_STM32.cpp change FSCM to FSMC .

Code: Select all

"Adafruit_TFTLCD_16bit_STM32.cpp:157:19: error: 'writeData_' was not declared in this scope   writeData_(color);
Now it compiles.

Will try out when I find some time later .

Thanks

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 4:50 pm

exider wrote:
Sat Oct 14, 2017 4:27 pm
another typo...
just above line 157 in Adafruit_TFTLCD_16bit_STM32.cpp change FSCM to FSMC .
That was one of the two typos what I have corrected before, and committed.
Are you really sure u are using the latest lib from github?

exider
Posts: 9
Joined: Wed Oct 04, 2017 12:58 pm

Re: [libmaple] FSMC LCD 16bit

Post by exider » Sat Oct 14, 2017 4:56 pm

Yes, that was it!
It works now!

@zmemw16
Copy wiring_private.h to Adafruit-GFX-Library folder and correct the two typo errors in Adafruit_TFTLCD_16bit_STM32.h ,and should work.

Thanks Steve!

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 5:10 pm

exider wrote:
Sat Oct 14, 2017 4:56 pm
Copy wiring_private.h to Adafruit-GFX-Library folder
Wait, this is not needed. For me, it works without this step.

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 5:30 pm

@stevstrong just curious - do you have your own local copy of Adafruit_GFX ?
so i went off to google with >adafruit wiring_private.h< and followed the 3rd answer to github

Code: Select all


#include "Adafruit_SPITFT.h"
#ifndef ARDUINO_STM32_FEATHER
  #include "pins_arduino.h"
#ifndef RASPI
    #include "wiring_private.h"                                 <========================== line 21
#endif
#endif
#include <limits.h>

#include "Adafruit_SPITFT_Macros.h"

tried commenting out lines 18-23, results then similar to @exider

FSCM

utilised grep and found a few, now with diff

Code: Select all

14c14
< #ifndef USE_FSMC
---
> #ifndef USE_FSCM
73c73
< #ifdef USE_FSMC
---
> #ifdef USE_FSCM
106c106
< #endif // USE_FSMC
---
> #endif // USE_FSCM
156c156
< #ifndef USE_FSMC
---
> #ifndef USE_FSCM
now it compiles

stephen

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 5:53 pm

My local Adafruit_GFX version is dated April 2017, so it may happen that they changed something since then.

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 build and works?

If yes, I will do the replacement in my lib, too.
I tried and it builds with some warnings which you can neglect.

Post Reply