juj/fbcp-ili9341

ILI9341 generic screen white screen issues (for help)

Closed this issue · 1 comments

My setup

A raspberry pi zero 2w (retropie flashed with rpi-imager, 32 bit)
The generic ILI9341 display

The issue

I have only been able to get a white screen.
This is the pinout of the board:
image
I also made sure to connect the hat correctly, like in this picture:
image
However when building the project and running the compiled binary there are no errors but the display stays white.

My steps

I cloned the repo and built the program inside the respective build directory (cleaning it every time I try a new build).
This were my cmake flags (correct me if I am wrong): cmake -DILI9341=ON -DSPI_BUS_CLOCK_DIVISOR=40 -DSTATISTICS=0 -DGPIO_TFT_DATA_CONTROL=22 -DGPIO_TFT_RESET_PIN=27 -DUSE_DMA_TRANSFERS=OFF ..

When running

sudo ./fbcp-ili9341
bcm_host_get_peripheral_address: 0x3f000000, bcm_host_get_peripheral_size: 16777216, bcm_host_get_sdram_address: 0xc0000000 BCM core speed: current: 250000000hz, max turbo: 400000000hz. SPI CDIV: 6, SPI max frequency: 66666667hz Allocated DMA channel 7 Allocated DMA channel 1 Enabling DMA channels Tx:7 and Rx:1 DMA hardware register file is at ptr: 0x75b53000, using DMA TX channel: 7 and DMA RX channel: 1 DMA hardware TX channel register file is at ptr: 0x75b53700, DMA RX channel register file is at ptr: 0x75b53100 Resetting DMA channels for use DMA all set up Initializing display Creating SPI task thread InitSPI done DISPLAY_FLIP_ORIENTATION_IN_SOFTWARE: Swapping width/height to update display in portrait mode to minimize tearing. Relevant source display area size with overscan cropped away: 480x720. Source GPU display is 480x720. Output SPI display is 240x320 with a drawable area of 240x320. Applying scaling factor horiz=0.44x & vert=0.44x, xOffset: 13, yOffset: 0, scaledWidth: 213, scaledHeight: 320 Creating dispmanX resource of size 213x320 (aspect ratio=0.665625). GPU grab rectangle is offset x=0,y=0, size w=213xh=320, aspect ratio=0.665625 All initialized, now running main loop...

I have tried everything but can't seem to get it to work, only a white screen. If someone has had experience with this please I appreciate your help, maybe I set the pins wrong?

Thanks for the help, and juj your program is amazing.

I didn't solder the gpio pins correctly, fixed now.