User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

enabling SPI1

Fri Aug 11, 2017 10:31 pm

I am trying to enable SPI1. I have SPI0 working fine and running a SPI LCD screen on CS0 and Touch on CS1. I also want to run my APA102 RBG LEDs on SPI1 as it this chip has a data line and clock ;line but no CS line. I can run the APA102 on SPI0 when I don't have the LCD screen attached to it.

I have added this line to the config.txt file "dtoverlay=spi1-1cs" but once I do that the RPi fails to boot

here is a copy of my current config.txt file

# For more options and information see
# http://rpf.io/configtxtreadme
# 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
dtoverlay=spi1-1cs

# 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

# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
start_x=1
gpu_mem=128
enable_uart=1
dtoverlay=w1-gpio

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: enabling SPI1

Fri Aug 11, 2017 10:47 pm

Ok I have found the solution.
I removed the 'console=serial0,115200' parameter from /boot/cmdline.txt as it apparently conflicts with SPI1

So now the next question what does "console=serial0,115200" do ???

pradroprod
Posts: 1
Joined: Sat Sep 30, 2017 7:49 pm

Re: enabling SPI1

Sat Sep 30, 2017 7:50 pm

I just followed recently this guide on how to enable spi1 on raspberry pi and I was succesfully to use three nrf24 modules!

User avatar
HermannSW
Posts: 2367
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: enabling SPI1

Sun Oct 01, 2017 12:46 am

pradroprod wrote:
Sat Sep 30, 2017 7:50 pm
I just followed recently this guide on how to enable spi1 on raspberry pi and I was succesfully to use three nrf24 modules!
You can get 2+3=5 SPI(0+1) chip select lines out of the box:
viewtopic.php?f=44&t=22608&p=1216154#p1216154
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

Return to “Interfacing (DSI, CSI, I2C, etc.)”