The Thingbox
Posts: 3
Joined: Mon Oct 19, 2015 8:50 am

always activate SPI?

Mon Oct 19, 2015 2:39 pm

Hi,

Is there a counterpart to always activate SPI?
We wonder if we could always set it on the Thingbox...

Thanks,

Nicolas.

The ThingBox Project - A ready to flash Raspberry Pi image that contains Node-RED and Internet Of Things software for non developers.
Find it at http://TheThingbox.io

JacobL
Posts: 76
Joined: Sun Apr 15, 2012 2:23 pm

Re: always activate SPI?

Mon Oct 19, 2015 8:07 pm

It seems the answer depends on which Pi you are using and which header is on it.

If you have the old 26 pin header, you only have SPI0 available. It doesn't look like anything interesting is muxed with SPI0, so the only downside would be that you permanently take up a couple of GPIOs if you permanently enable SPI0.

If you have the new 40 pin header, you still have SPI0 available with the same properties. Additionally, you also have SPI1 (one of the AUX SPI) available, so if you include this in your "always activate SPI" then you might want to know that there is more functionality shared on these pins. It looks like there are a couple of GP clocks, 2 PWM pins and a BSC slave interface. And of course, they are GPIO pins too.

The Thingbox
Posts: 3
Joined: Mon Oct 19, 2015 8:50 am

Re: always activate SPI?

Thu Oct 22, 2015 1:48 pm

Thanks+++ for your reply.
Now, the Thingbox is only dedicated to Pi2.
So I understand that by using Raspi-config to activate SPI for all Thingbox users, I prevent some other use of these GPIOs ports.

Return to “Bare metal, Assembly language”