Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 months ago.
unable to compile TFT_Test_ILI9341 on NUCLEO-F103RB
I am trying with no success to activate the 2.8" adafruit tft https://learn.adafruit.com/adafruit-2-dot-8-color-tft-touchscreen-breakout-v2/overview
I have tried to use Peter Drescher's library: [[TFT_Test_ILI9341https://developer.mbed.org/users/dreschpe/code/TFT_Test_ILI9341/]] as I can see it is very popular one
the first attempt to compile yielded error message saying : Error: "Cannot open source input file "device.h": No such file or directory..."
After updating the mbed library I've passed this problem but got another error message saying: "Error: Identifier "LocalFileSystem" is undefined in "SPI_TFT_ILI9341/SPI_TFT_ILI9341.cpp", Line: 619, Col: 6 "
After commenting the line in SPI_TFT_ILI9431.cpp,
<<code LocalFileSystem local("local"); <</code>> and I've got to the next error messages:
Error: Identifier "p5" is undefined in "main.cpp", Line: 20, Col: 22 Error: Identifier "p6" is undefined in "main.cpp", Line: 20, Col: 26 ... ...
So, I have replaced the pin names in the following line of code:
SPI_TFT_ILI9341 TFT(p5, p6, p7, p8, p9, p10,"TFT"); // mosi, miso, sclk, cs, reset, dc
To a recognized pin name that fit the NUCLEO as follows:
SPI_TFT_ILI9341 TFT(D11, D12, D13, D10, D8, D9,"TFT"); // mosi, miso, sclk, cs, reset, dc
Which happily brought me to the following error message which I understand to be related to the exceeding ram space: "Error: No space in execution regions with .ANY selector matching can_api.o(.bss)."
So here I got stack, I am sure there should be a simple way to activate an ILI9341 TFT as it is a very basic need,
I'll greatly appreciate any help
Thanks in advance, Guy