Ili9341 screen not working
Ili9341 screen not working
Hello all
I have a pocket adventure screen that I have wired up to a pi 3a+, and following the pocket adventure guide I have disabled overscan, enabled spi and entered the sudo modprobe text, all is well so far. However once I type the next line of text to move the display to the spi screen I get an error message saying ioctl fbiout_con2fbmap invalid argument.
The screen lights up as soon as I power the pi, the screen is wired up to the pi rather than using pins, I have had to use different ground pins on the gpio.
Any help on this issue will be greatly appreciated
I have a pocket adventure screen that I have wired up to a pi 3a+, and following the pocket adventure guide I have disabled overscan, enabled spi and entered the sudo modprobe text, all is well so far. However once I type the next line of text to move the display to the spi screen I get an error message saying ioctl fbiout_con2fbmap invalid argument.
The screen lights up as soon as I power the pi, the screen is wired up to the pi rather than using pins, I have had to use different ground pins on the gpio.
Any help on this issue will be greatly appreciated
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: Ili9341 screen not working
those instructions are for the zero and i think you'd need to adjust them to work with the 3. for the pi3 though, you'd be better off using the ili9341 driver: https://github.com/juj/fbcp-ili9341 - you will get much better results...AstroPete wrote: ↑Thu Oct 10, 2019 2:29 amHello all
I have a pocket adventure screen that I have wired up to a pi 3a+, and following the pocket adventure guide I have disabled overscan, enabled spi and entered the sudo modprobe text, all is well so far. However once I type the next line of text to move the display to the spi screen I get an error message saying ioctl fbiout_con2fbmap invalid argument.
The screen lights up as soon as I power the pi, the screen is wired up to the pi rather than using pins, I have had to use different ground pins on the gpio.
Any help on this issue will be greatly appreciated
first disable SPI in raspi-config (this driver doesn't use it). overscan can be disabled, but you can run it with it enabled too and just manually adjust the offsets in the config.txt. whatever looks right on yours.
here's the steps for install:
Code: Select all
#pre-req libraries
sudo apt-get update
sudo apt-get install cmake -y
#driver install
cd ~
git clone https://github.com/juj/fbcp-ili9341.git
mkdir /home/pi/fbcp-ili9341/build
cd /home/pi/fbcp-ili9341/build
# set up config
# for pi Zero
cmake -DARMV6Z=ON -DILI9341=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON ..
## OR ##
# for pi 3
cmake -DARMV8A=ON -DILI9341=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON ..
#compile it
make -j
# set it to start automatically at boot
sudo sed -i '/\"exit 0\"/!s/exit 0/\/home\/pi\/fbcp-ili9341\/build\/fbcp-ili9341 \&\nexit 0/g' /etc/rc.local
# run this to test / immediately switch the display without having to reboot
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
Re: Ili9341 screen not working
I've followed the instructions above but I'm getting a cmake error stating the source directory "/home/pi/fbcp-ili9341/build" does not appear to contain cmakelists.txt
I've done something wrong but not sure what. Any advice anybody?
I've done something wrong but not sure what. Any advice anybody?
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: Ili9341 screen not working
i haven't seen that before... did you run the full command, including the last two periods, from inside the build dir?
Code: Select all
cmake -DARMV8A=ON -DILI9341=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON ..
.
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
Re: Ili9341 screen not working
Ah not sure if I did put two dots on the end. I will try again and see what happens.
Re: Ili9341 screen not working
OK I have gotten further lots of text, build files have been written to home/pi/fbcp-ili9341/build.
Type in make -J and more text 100% built target fbcp-ili9341, but the screen is just lit up white. Nothing else on it. Am I missing something?
Any help will be greatly appreciated.
Type in make -J and more text 100% built target fbcp-ili9341, but the screen is just lit up white. Nothing else on it. Am I missing something?
Any help will be greatly appreciated.
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: Ili9341 screen not working
did you run the final command to start it?AstroPete wrote: ↑Thu Oct 17, 2019 3:09 pmOK I have gotten further lots of text, build files have been written to home/pi/fbcp-ili9341/build.
Type in make -J and more text 100% built target fbcp-ili9341, but the screen is just lit up white. Nothing else on it. Am I missing something?
Any help will be greatly appreciated.
Code: Select all
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &
.
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
Re: Ili9341 screen not working
Hey,
I update this post, I had the same problem at first (wrong pi zero command for my pi 3A).
Then I followed all the steps infinitLoop explained with success.
Now starts failing, I ran all the commands with HDMI screen plugged in and ILI9341 unplugged and I was about to run the last command to try the screen:
when I saw the ILI9341 was not plugged, I plugged it on directly (with the pi started) and it flashes once and then nothing... Just a black screen. I tried to reboot many times, run the command again and again but nothing happened...
Did I burn it ? Or Is there a way to make it work again ?
Thanks if someone knows
I update this post, I had the same problem at first (wrong pi zero command for my pi 3A).
Then I followed all the steps infinitLoop explained with success.
Now starts failing, I ran all the commands with HDMI screen plugged in and ILI9341 unplugged and I was about to run the last command to try the screen:
Code: Select all
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &
Did I burn it ? Or Is there a way to make it work again ?
Thanks if someone knows
Who is online
Users browsing this forum: No registered users and 1 guest