PiTFT Still getting unknown chip error

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rnorfor
 
Posts: 3
Joined: Tue Jan 14, 2014 4:45 am

PiTFT Still getting unknown chip error

Post by rnorfor »

When I first used my shield touch worked fine. However since then I have been unable to get it
to work again.

I have checked the continuity of all pins from my pi through the shield to a cobbler attached to the gpio socket on the shield, this all seems fine.

I have reinstall 2013-09-25 Raspbian, both with updates and without.

The tft screen works fine.

dmesg output:
[ 12.142553] bcm2708_spi bcm2708_spi.0: DMA channel 0 at address 0xf2007000 with irq 16
[ 12.154984] bcm2708_spi bcm2708_spi.0: DMA channel 4 at address 0xf2007400 with irq 20
[ 12.168756] spi_master spi0: will run message pump with realtime priority
[ 12.183314] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 12.200178] bcm2708_spi bcm2708_spi.0: SPI Controller running in polling mode
[ 12.361965] fbtft_device: SPI devices registered:
[ 12.368259] fbtft_device: spidev spi0.0 500kHz 8 bits mode=0x00
[ 12.391886] fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00
[ 12.399710] fbtft_device: 'fb' Platform devices registered:
[ 12.406829] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 12.413675] fbtft_device: Deleting spi0.1 (spi0.1)
[ 12.422455] fbtft_device: Looking at item 0
[ 12.428043] fbtft_device: Setting pin 24 to 2
[ 12.520477] stmpe-spi spi0.1: unknown chip id: 0x0
[ 12.526654] stmpe-spi: probe of spi0.1 failed with error -22
[ 12.539590] fbtft_device: Deleting spi0.0 (spi0.0)
[ 12.548712] fbtft_device: GPIOS used by 'adafruitts':
[ 12.570182] fbtft_device: 'dc' = GPIO25
[ 12.575610] fbtft_device: SPI devices registered:
[ 12.587024] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00
[ 12.605285] fbtft_device: fb_ili9340 spi0.0 32000kHz 8 bits mode=0x00
[ 12.983767] graphics fb1: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 16 KiB buffer memory, fps=20, spi0.0 at 32 MHz

Is there anything else to try or is it a duff chip?

Thanks.

Rod

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiTFT Still getting unknown chip error

Post by adafruit_support_mike »

The "failed with errno -22" thing is normal. The OS checks a signal the TFT driver doesn't support before going on to the rest of the initialization.

This line:

Code: Select all

[ 12.548712] fbtft_device: GPIOS used by 'adafruitts':
says the RasPi is talking to the TFT driver, and the fact that it goes on to configure a framebuffer means things look good on the software side.

Have you double-checked the flex cable between the TFT and the PCB? It can come partway loose and interfere with the signals, but still looks okay when that happens.

User avatar
rnorfor
 
Posts: 3
Joined: Tue Jan 14, 2014 4:45 am

Re: PiTFT Still getting unknown chip error

Post by rnorfor »

Thanks for the reply,

The flex cable seems to be connected.

I have removed and reconnected it.

Still can't get the touchscreen detected.

Is there anything else I can check as to why the touchscreen isn't detected?

Could it be a software rather than hardware issue?

Rod

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiTFT Still getting unknown chip error

Post by adafruit_support_mike »

If the cable is good, that sounds more like a hardware problem than a software problem.

Let's try a new one: send a note to [email protected] with a link to this thread and the folks there will get you a replacement.

User avatar
ehanoc
 
Posts: 6
Joined: Fri Dec 19, 2014 1:23 pm

Re: PiTFT Still getting unknown chip error

Post by ehanoc »

Im having the exact same problem. My screen works but no touch events are detected. The dmesg log is very similar to mine. Help ...

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: PiTFT Still getting unknown chip error

Post by Franklin97355 »

Please post your dmesg log.

User avatar
ehanoc
 
Posts: 6
Joined: Fri Dec 19, 2014 1:23 pm

Re: PiTFT Still getting unknown chip error

Post by ehanoc »

franklin97355 wrote:Please post your dmesg log.
[ 12.119781] fbtft_device: SPI devices registered:
[ 12.128620] fbtft_device: spidev spi0.0 500kHz 8 bits mode=0x00
[ 12.136733] fbtft_device: spidev spi0.1 500kHz 8 bits mode=0x00
[ 12.150564] fbtft_device: 'fb' Platform devices registered:
[ 12.157847] fbtft_device: bcm2708_fb id=-1 pdata? no
[ 12.176134] fbtft_device: I2C devices registered:
[ 12.182664] fbtft_device: i2c-0 addr 48896 IRQ 0
[ 12.189459] fbtft_device: i2c-1 addr 48896 IRQ 1
[ 12.196318] fbtft_device: pcm5122 1-004d addr 77 IRQ 0
[ 12.203637] fbtft_device: wm8804 1-003b addr 59 IRQ 0
[ 12.210831] fbtft_device: pcm5122 1-004c addr 76 IRQ 0
[ 12.290444] fbtft_device: Deleting spi0.1 (spi0.1)
[ 12.303250] stmpe-spi spi0.1: unknown chip id: 0x0
[ 12.315748] stmpe-spi: probe of spi0.1 failed with error -22
[ 12.330725] fbtft_device: Deleting spi0.0 (spi0.0)
[ 12.344274] fbtft_device: GPIOS used by 'adafruitrt28':
[ 12.359339] fbtft_device: 'dc' = GPIO25
[ 12.370566] fbtft_device: SPI devices registered:
[ 12.376836] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00
[ 12.400594] fbtft_device: fb_ili9340 spi0.0 32000kHz 8 bits mode=0x00
[ 12.683839] i2c /dev entries driver
[ 13.006727] graphics fb1: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz
[ 18.667837] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 21.536269] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 30.465484] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS

My dmesg log. Thanks for the quick reply

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”