0

Strange behavior with Adafruit 2.4" TFT Featherwing and Adaf
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Strange behavior with Adafruit 2.4" TFT Featherwing and Adaf

by Brandon_Tarr on Wed Oct 18, 2017 7:09 pm

Hi,

I'm using a Adafruit Feather nRF52 Bluefruit with the Adafruit 2.4" TFT FeatherWing. When I load the example graphicstest_featherwing everything works just as expected. However, when I load the touchpaint_featherwing, things start to get a little weird. Let me explain...

The first thing I notice is that after touchpaint_featherwing is loaded for the first time and I start drawing on the screen (which works normally), when I upload the sketch again, the system does not reset. Pressing the reset button does nothing and I have to power cycle the display with the switch on the back to get the sketch to start.

The second thing I notice is that after the sketch is freshly loaded and I reset the screen, before touching the screen I open the serial monitor. It prints out:

X = 0 Y = 0 Pressure = 0
X = 0 Y = 0 PressuFeatherWing TFT
Couldn't start touchscreen controller

After this the touchscreen (drawing) functionality will not work at all unless I cycle the power to the screen.

After power cycling I can one again draw on the screen. If I then open the serial monitor, it prints out:

X = 2366 Y = 2214 Pressure = 59
FeatherWing TFT
Couldn't start touchscreen controller

and it once again freezes the touchscreen and drawing no longer works.

Finally, I found that if I close the serial monitor, cycle the power to the display, touch and HOLD the screen surface while opening the serial monitor, everything works perfectly just as one would expect. The drawing works perfectly and serial debug info is sent to the serial monitor.

This phenomenon only seems to present itself in sketches that use the STMPE610 library.
(Adafruit_STMPE610 ts = Adafruit_STMPE610(STMPE_CS);)

I hope I described this well.

Any insight on this matter?

Thanks in advance.

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Wed Oct 25, 2017 4:56 pm

Anyone???

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by texassilhouette on Thu Dec 07, 2017 11:25 am

I'm having the same problem, if I upload a sketch or reset the Feather the touchscreen will not start. If I power cycle, it works but only until a reset, then the power must be removed and reconnected.
https://www.adafruit.com/product/3406
https://www.adafruit.com/product/3315

texassilhouette
 
Posts: 5
Joined: Fri Dec 20, 2013 4:54 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit_support_carter on Fri Dec 08, 2017 9:19 pm

I tested this with Feathers I have: 32u4, M0, and ESP8266. All worked fine. Unfortunately I don't have an nRF52 on hand. I've asked here to see if someone else can test that config. Might be something specific to nRF52.

adafruit_support_carter
 
Posts: 4715
Joined: Tue Nov 29, 2016 2:45 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Mon Dec 11, 2017 8:10 pm

Let me know when you can't reproduce exactly what I described. These are off-the-shelf boards running off-the-shelf software. Should be pretty easy to reproduce. Just gotta use exactly what I described...

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit2 on Fri Dec 15, 2017 2:08 pm

Brandon, the reset switch not working is odd - can you post a photo of your feather 52? thx!

adafruit2
Site Admin
 
Posts: 16222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Fri Dec 15, 2017 2:14 pm

FWIW here's a picture:
Attachments
IMG_20171215_131134.jpg
IMG_20171215_131134.jpg (161.3 KiB) Viewed 265 times

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit2 on Fri Dec 15, 2017 2:38 pm

when you press the tiny RESET button does that reset the board?

adafruit2
Site Admin
 
Posts: 16222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Fri Dec 15, 2017 4:15 pm

Not sure if the reset button is resetting the nRF52 Bluefruit LE but it is certainly not resetting the TFT. The large reset button on the TFT is also not resetting the TFT. If I cycle the power switch on the TFT everything resets and powers up. I can draw on the screen in this state. If after drawing on the screen (to test functionality) I press either the small or large reset buttons, the system is unresponsive and requires cycling the power switch on the TFT again.

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit2 on Fri Dec 15, 2017 4:25 pm

try opening up the serial console so you can see if the reset button is doing something

adafruit2
Site Admin
 
Posts: 16222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Fri Dec 15, 2017 4:51 pm

As I previously stated, it prints out...

FeatherWing TFT
Couldn't start touchscreen controller

I found that if I close the serial monitor, cycle the power to the display, touch and HOLD the screen surface while opening the serial monitor, everything works perfectly just as one would expect. The drawing works perfectly and serial debug info is sent to the serial monitor.

Specifically it prints out...
FeatherWing TFT
Touchscreen started

x = 1620 y= 2732 Pressure = 18
etc.

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit2 on Fri Dec 15, 2017 5:05 pm

ok but pressing reset on either wing or feather *does* reset the nRF52 - don't reopen the serial console, keep it open!

adafruit2
Site Admin
 
Posts: 16222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Fri Dec 15, 2017 5:09 pm

Yes, it repeatedly prints out...

FeatherWing TFT
Couldn't start touchscreen controller

I don't believe its a problem with the nRF52.
I believe its a problem with the TFT.

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by adafruit2 on Fri Dec 15, 2017 5:16 pm

ok good, at least that isnt the issue!
the touch controller can be a little finicky, especially if it gets interrupted in the middle of a transaction. if you keep uploading that same sketch, it may be agravating it.
there's no formal reset pin on that chip, if you're using the latest firmware drivers, then you'll need to do a hard power reset! that's the only fix we have right now

adafruit2
Site Admin
 
Posts: 16222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Strange behavior with Adafruit 2.4" TFT Featherwing and

by Brandon_Tarr on Fri Dec 15, 2017 5:33 pm

So what you're saying is that the operation that I'm seeing is normal, i.e. inherent in the design of this hardware, and that there is no solution for a reasonable development workflow that utilizes this touchscreen display with a serial debug window??? How did this make it through development testing to production?

Brandon_Tarr
 
Posts: 13
Joined: Tue Jul 08, 2014 8:48 am

Please be positive and constructive with your questions and comments.