Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Adafruit 2.4" TFT FeatherWing shows white
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit 2.4" TFT FeatherWing shows white

by Jorgininho on Sun Aug 30, 2020 4:34 pm

Hello,

I have a Adafruit 2.4" TFT FeatherWingonnn which I plug an ESP8266, I follow theclassic tutorial :
https://learn.adafruit.com/adafruit-2-4 ... phics-test
But I got a white screen. I've already made this works with this exact material.
I really don't know from where to start, the hardware seems allright :/

Jorgininho
 
Posts: 8
Joined: Tue Nov 29, 2016 5:49 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by mikeysklar on Mon Aug 31, 2020 12:36 pm

Hi Jorgininho,

If you are using an ESP8266 there are some pin changes you will have to make to the code.

Code: Select all | TOGGLE FULL SIZE
On the ESP8266, TFT_CS is pin #0, TFT_DC is pin #15
On the ESP8266, RT is pin #16
On the ESP8266, SD is pin #2


Are you using Arduino or CircuitPython?

I'm assuming you are on a ESP8266 and not an ESP32 which is a common point of confusion.

The troubleshooting guide does mention a power up issue with the display that goes away with a reset.

https://learn.adafruit.com/adafruit-2-4 ... leshooting

mikeysklar
 
Posts: 1995
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by Jorgininho on Tue Sep 01, 2020 8:56 am

Indeed I'm using an ESP8266
hey thanks for the reply, unfortunatly reset doesn't change, I still have the white screen.
I'm using the graphictest_featherwing example from IlI9341 library in which there this part of the code which put the right value for pins :
Code: Select all | TOGGLE FULL SIZE
#ifdef ESP8266
   #define STMPE_CS 16
   #define TFT_CS   0
   #define TFT_DC   15
   #define SD_CS    2
#endif


There is tis part in the code which is supposed to help for debugging :
Code: Select all | TOGGLE FULL SIZE
  // read diagnostics (optional but can help debug problems)
  uint8_t x = tft.readcommand8(ILI9341_RDMODE);
  Serial.print("Display Power Mode: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDMADCTL);
  Serial.print("MADCTL Mode: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDPIXFMT);
  Serial.print("Pixel Format: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDIMGFMT);
  Serial.print("Image Format: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDSELFDIAG);
  Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX);


But I don't see it in the monitor ?

Instead I got this :
Code: Select all | TOGGLE FULL SIZE
Exception (3):
epc1=0x40203c5d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023b3ab depc=0x00000000


Any idea ?

Jorgininho
 
Posts: 8
Joined: Tue Nov 29, 2016 5:49 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by mikeysklar on Tue Sep 01, 2020 11:12 am

Hi Jorgininho,

Thank you for providing some of the detailed crash data. That helped.

We have another forum thread with the same setup ESP8266 + TFT crashing in this way.

viewtopic.php?f=57&t=119265&p=595724&hilit=Exception+esp8266+IlI9341#p595724

The solution that user used was to go back on their ESP8266 Arduino board release to 2.3.0. They had been running a release candidate 2.4.0-rc1. Which version are you running on your ESP8266? Version 2.7.4 is current and might work if you would like to try it.

https://github.com/esp8266/Arduino/releases

mikeysklar
 
Posts: 1995
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by Jorgininho on Wed Sep 02, 2020 4:56 am

Hello thanks for the answer but it didn't work.

With version 2.3 I got this in monitor
⸮FeatherWing TFT Test!

Exception (3):
epc1=0x40204791 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40232762 depc=0x00000000

ctx: cont
sp: 3ffef470 end: 3ffef680 offset: 01a0


with v2.4 :

Code: Select all | TOGGLE FULL SIZE
Exception (3):
epc1=0x40204c0d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023823a depc=0x00000000

ctx: cont
sp: 3ffefc80 end: 3ffefe90 offset: 01a0


with v2.4.1:

Exception (3):
epc1=0x40204c0d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023820e depc=0x00000000

ctx: cont
sp: 3ffef8f0 end: 3ffefb00 offset: 01a0


with v2.6:
Exception (3):
epc1=0x40203c5d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023b357 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffdc0 end: 3fffffc0 offset: 01a0


with v2.7.4:

Exception (3):
epc1=0x40203c5d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023bc3b depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffdc0 end: 3fffffc0 offset: 0190


I erformed a hard reset each time, still with screen

Jorgininho
 
Posts: 8
Joined: Tue Nov 29, 2016 5:49 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by Jorgininho on Mon Sep 07, 2020 4:19 am

No ideas ?

Jorgininho
 
Posts: 8
Joined: Tue Nov 29, 2016 5:49 pm

Re: Adafruit 2.4" TFT FeatherWing shows white

by mikeysklar on Tue Sep 08, 2020 3:25 pm

Jorgininho,

Thank you for trying multiple ESP releases. Let's try running your crash through the EspExceptionDecoder to decode the stack trace from v2.7.4.

https://github.com/me-no-dev/EspExceptionDecoder

mikeysklar
 
Posts: 1995
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.