Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 897|Reply: 1

SPI freezes with tft and touch enabled together (OPiZero)

[Copy link]

3

Threads

6

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2018-8-14 13:32:44 | Show all posts |Read mode
Hi all!

I have Orange Pi Zero with armbian mainline kernel 4.14.
i'm not sure about the topic name, but to me seems like that.

I've managed to make spi tft work flawlessly on my zero. But after i've continued with touchscreen module, i've got problems.
After X is started, i can confirm touch is working, because when i touch the display, mouse pointer moves. But in the strange way, very laggy (more than a second to respond), but is works only for ~10 secs, then display stops to redraw.
And it is not because of bad contacts! Because i've soldered everything together. And it also freezes if i don't touch it.
The system is still working tho, because i can still connect to it.
And there is all fine in dmesg log.
I've also tried lowering SPI clocks from 16M to 500K, but of no good.

I'm not very good at linux, so i don't even know where to look for errors.

For those, who is not familiar with Orange Pi Zero SPI - tft is connected directly to spi bus, touch is connected to same bus, but CE1 is not there, so it is muxed to generic gpio10.
                                       

0

Threads

19

Posts

122

Credits

Registered member

Rank: 2

Credits
122
Post time 2018-8-14 20:51:44 | Show all posts
Hi,

do you have a schematic or something else of your circuit?

SPI can handle 2 slaves, if you use Slave Select/Chip select.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-20 01:51 GMT+8 , Processed in 0.028259 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list