Babayaga
Posts: 3
Joined: Mon Jan 14, 2019 6:06 pm

ls cannot access /dev/spi* no such file or directory

Mon Jan 14, 2019 7:31 pm

Hi.
I’m newbie with Raspberry; I have a B+ and can’t get the SPI to work.
I’ve checked config.txt and raspi-config, made every update and upgrade but when I type “ls /dev/spi*” the output is “ls cannot access /dev/spi* no such file or directory”.

Any help?

Thank you!!!

danjperron
Posts: 3131
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: ls cannot access /dev/spi* no such file or directory

Mon Jan 14, 2019 8:25 pm

I’m newbie with Raspberry; I have a B+ and can’t get the SPI to work.
Do you have a SPI monitor with touch screen installed on your PI?

Could you provide the config.txt .

Andyroo
Posts: 790
Joined: Sat Jun 16, 2018 12:49 am

Re: ls cannot access /dev/spi* no such file or directory

Mon Jan 14, 2019 8:44 pm

Have you enabled SPI though config.txt or raspi-config?

By default the SPI bus is disabled on the Pi.
Need Pi spray - these things are breeding in my house...

Babayaga
Posts: 3
Joined: Mon Jan 14, 2019 6:06 pm

Re: ls cannot access /dev/spi* no such file or directory

Tue Jan 15, 2019 12:24 am

I’ve enabled it both using raspi-config and config.txt.
In config.txt the SPI line is uncommented and true.

I’ve installed a display but I’ve removed it.

danjperron
Posts: 3131
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: ls cannot access /dev/spi* no such file or directory

Tue Jan 15, 2019 1:31 am

I’ve installed a display but I’ve removed it.
I think that is your problem. Did you removed the driver of the screen?

Please post your config.txt

Babayaga
Posts: 3
Joined: Mon Jan 14, 2019 6:06 pm

Re: ls cannot access /dev/spi* no such file or directory

Tue Jan 15, 2019 7:02 am

danjperron wrote:
Tue Jan 15, 2019 1:31 am
I’ve installed a display but I’ve removed it.
I think that is your problem. Did you removed the driver of the screen?

Please post your config.txt
Ehm... no, didn't removed them...

here's my config.txt

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
enable_uart=1
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=2
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

danjperron
Posts: 3131
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: ls cannot access /dev/spi* no such file or directory

Tue Jan 15, 2019 12:06 pm

Ehm... no, didn't removed them...
The driver for the display use all the SPI!

Take the display driver out

Code: Select all

hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=2
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

Return to “Troubleshooting”