-->
Page 5 of 18

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Sun Sep 20, 2015 2:10 pm
by erhardd
Sorry, i've installed cygwin long time ago!
But this line (777 in Ucglib.cpp)
#if defined(__PIC32MX) || defined(__arm__) || defined(__XTENSA__)
brings me to an 8-bit Interface;
I have this constructor uncommented:
Ucglib_ILI9341_18x240x320_HWSPI ucg(/*cd=*/ 9 , /*cs=*/ 10, /*reset=*/ 8);
(with other Pins for cd,cs and reset)
and want to use HWSPI ..

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Sun Sep 20, 2015 3:32 pm
by Oldmicroguy
In that case, doing what the shellscript does manually is perhaps easiest (basically, it's just: cppsrc -> library root, csrc -> clib subdir, and edit the include in Ucglib.h to point into clib/ucg.h).

Hi spapadim,

I'm afraid I'm a little dense. Can you elaborate on your instructions?
Thanks,
Oldmicroguy

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Wed Sep 23, 2015 2:18 pm
by Oldmicroguy
So I got cygwin and ran sh create_release.sh
Tried to run Hello World but got a lot of errors
Then edited #if defined(__PIC32MX) || defined(__arm__)
to #if defined(__PIC32MX) || defined(__arm__) || defined(__XTENSA__)
Tried to run Hello World again and was hopeful because the compiler worked for quite a while but finally generated these errors:
......`.rodata' will not fit in region `dram0_0_seg'
.....`.bss' is not within region `dram0_0_seg'
.....`.text' will not fit in region `iram1_0_seg'
.....`.bss' is not within region `dram0_0_seg'

I am using the Stable version Jul 23, 2015
and Ucglib 1.3.3 modified by "create_release.sh"

Any ideas?
Oldmicroguy

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Wed Sep 23, 2015 3:55 pm
by erhardd
- delete the
|| defined(__XTENSA__)
and you will get the error I show in the reply Sun Sep 20, 2015 8:10 pm
We run into 8-bit Interface ..