is a device tree overlay for the LogiPi available?
RPi B or RPi 2?
I now have my SPI Pitft 320x240 display working on RPi B using device tree**
but when I add LogiPi screen no longer shows console text,
changes from white to black to grey.
is this expected behaviour?
this is a brand new uptodate install of raspian,
there are no peripherals attached, ethernet only.
logi
https://www.raspberrypi.org/forums/viewtopic.php?f=41&t=110634&p=761236
Comments
we don't have a specific device-tree overlay for the LOGI-Pi. The LOGI-Pi requires to have spi and i2c enabled and both can be activated using the dtparam argument in the config.txt (see logi-tool github page).
The SPI piTFT usually uses the SPI port and the two chip select, so i guess that the problem can come from the FPGA messing up with the SPI pins and thus preventing the SPI display to work. Do you have the schematic of the SPI display ? Are you using a LOGI-PI v1 or V2 ?
SPI schematics pages 69-71:
https://learn.adafruit.com/downloads/pdf/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi.pdf
sudo nano /boot/config.txt
...
dtoverlay=pitft28-resistive,...
I added
dtparam=i2c=on
without result
Another explanation could be that the FPGA loads the SPI pins and prevent them to run at the configured speed for the LCD. Could you try to see if you can lower the SPI speed of the LCD ?
1M works on RPi, but not with LogiPi
also tried 500k on LogiPi & 320k on RPi these did not work,
ps ax
288 ? S< 0:00 [20204000.spi]
please could you suggest alternate pins to try?
or other workaround?
I only connected pins 19 21 23 25 2 22 24
ie mosi miso sclk gnd 5v spio, on RPi
pin 22 or GPIO25 timing? sets horizontal offset
RPi displays as normal
LogiPi display shows all white, does not setup.
and use JTAG to load hardware.
it seems that something is happening on SPI as soon as power is applied?
pin 18 RP_GPIO_GEN5_PROG_B is not connected for display as above
pin 21 miso is also not needed.
so only pins 19 23 25 2 22 24
thanks for getting back, this tft dsiplay runs okay using only pins 19 23 25 2 22 24 it has touchscreen etc, but that is minimum.
the screen is detached and wire is connecting.
as jpiat suggests, in theory one might use logi_loader, reboot and then use SPI for display,
rebooting does not seem to effect hardware running on LogiPi.
alternately use JTAG to load hardware,
I'm currently using uart to communicate, though i2c is a possibility.
what needs clarification, is why the display works when these pins are directly connected to RPi 1 or 2,
but not when connected to the same pins on LogiPi, even though Logi-tools is not installed and hence Logi_loader has not been run,
so presumably there is no hardware running?
anyway please excuse my ignorance,
I had assumed it might be possible to run SPI display with LogiPi?
is it likely there is a way?
V2 may be way to go, for now on V1,
do hope this is not spam:
Pin states tested for RPi 1: 19 23 25 2 22 24
RPi alone pin 22 is +3.28v
with LogiPi V1 +0.9v
other 5 pins did not appear to change.[1]
tft display was not connected for these tests.**
thanks again
Jonathan
[1] I assume as my skills and kit are basic, other variations may not be relevant:
pins 23 and 24 appear to fluctuate and may have a slightly broader range with LogiPi?
pin 23 0.00v to 0.05v, pin 24 3.19v to 3.24v
**further notes regarding Mike's post above
1) not quite sure what is meant, please expand.
my most recent tests involved RX and TX pins to send data from fpga to RPi
2) I mounted TFT display on LogiPi V1 on RPI B, then shorted JTAG pins 1 and 2 this caused RPi to reboot.
display responded as per normal boot. ie the display does not run through its normal routine, and goes to grey.
for completeness tested again connecting only pins 19 23 25 2 22 24 same result.
I am trying to find a good way to use a small portable display.
The usb DFRobot tft display is hard to setup, it requires rather old kernel, or complete kernel build
Their website has been seriously hacked for quite some time, which also is not good
The Adafruit type tft display is much easier to setup using device tree on current kernel,
and easy to mount using GPIO ))
if RPi 1 pin 22 is not connected to display at boot time,
display does not go through setup and is not operational.
LogiPi not connected.
this is quite hard, as display effectively covers FPGA, but I tried twice with good contact in each case.
RPi alone pin 22 is +3.28v
however when LogiPi only is attached pin 22 is V1 +0.9v
LCD does work with LPi provided pin22 is looped around, only checked with pins 19 23 25 2 22 24
so when I get a chance will check against all pins,
then we can cut a trace, if we get that far....
thanks again
~:"
rather confusingly Logi_loader reports: Init pin not going high !
when one is running the Rpi logi_loader on RPi2
it does also report: Loader was compiled for PIB/B+/A/A+
but....
only a few tests such as:
sudo cat /dev/urandom > /dev/fb1
and logi_loader vga_bar.bit
seems to boot okay without display and run logi_loader
not yet found an error message though...
many thanks once again
~:"