-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Description
Hello,
I’m a beginner, so please excuse me if my question is not in the right place or not properly formulated.
I recently got a Raspberry Pi screen — the KeDei 3.5 inch SPI TFT LCD (480×320, 16bit/18bit, version 6.3, 2016/11/1) , but I haven’t been able to make it work so far.
What I have tried so far :
1. config.txt settings :
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details
# Uncomment some or all of these to enable the optional hardware interfaces
# dtparam=i2c_arm=on
# dtparam=i2s=on
# dtparam=spi=on # ← I did not enable SPI yet, maybe that is a problem?
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras and DSI displays
camera_auto_detect=1
display_auto_detect=1
# Automatically load initramfs files, if found
auto_initramfs=1
# I commented out these lines
# dtoverlay=vc4-kms-v3d
# max_framebuffers=2
disable_fw_kms_setup=1
disable_overscan=1
arm_boost=1
[cm4]
otg_mode=1
[cm5]
dtoverlay=dwc2,dr_mode=host
[all]
dtoverlay=dwc2
hdmi_group=2
hdmi_mode=87
hdmi_cvt=480 320 60 1 0 0 0
hdmi_force_hotplug=1
2. Steps via SSH
sudo apt install cmake libraspberrypi-dev raspberrypi-kernel-headers
# Clone the fbcp-ili9341 repo
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341
# Build the project
mkdir build
cd build
cmake -DKEDEI_V63_MPI3501=ON -DSPI_BUS_CLOCK_DIVISOR=40 ..
make -j
# Load the kernel module
cd ../kernel
./start_kernel_module.sh
# Start the driver
cd ../build
tail -f /tmp/TCfifo &
sudo ./fbcp-ili9341
3. Log output :
pizero2W:~/fbcp-ili9341/build $ 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: 40, SPI max frequency: 10000000hz
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: 320x480.
Source GPU display is 320x480. Output SPI display is 320x480 with a drawable area of 320x480. Applying scaling factor horiz=1.00x & vert=1.00x, xOffset: 0, yOffset: 0, scaledWidth: 320, scaledHeight: 480
Creating dispmanX resource of size 320x480 (aspect ratio=0.666667).
GPU grab rectangle is offset x=0,y=0, size w=320xh=480, aspect ratio=0.666667
All initialized, now running main loop...
Even though waiting for many minutes with the backlight on, the screen remains black
4. Other tests
- Manual GPIO pin configuration : I have also tried to configure the pins manually, but it did not change the result.
- Change Raspberry pi OS 32bit Bookworm to Bullseyes
Same result — the screen still stays black.
My question
If you see any mistakes in my config.txt, SPI settings, or commands — or if you have suggestions for the correct wiring or a working driver for the KeDei 3.5” SPI screen with a Raspberry Pi Pico 2 W, I would be very grateful for your help!
Thank you very much for your time and support !
Metadata
Metadata
Assignees
Labels
No labels
