Go to advanced search

by krishnaiah.vv
Mon Sep 07, 2015 12:10 pm
Forum: Advanced users
Topic: Clarifications on BSC slave
Replies: 12
Views: 5812

Re: Clarifications on BSC slave

I did the following set up and executed the test case listed below. Both the RPis(PiA Master - PiB Slave) are connected over SPI(with common GND) as a test setup. The issue is that, the FIFO flags in FR register doesn't set. I checked with all the 4 modes of CPHA and CPOL. Step1 : Configured PiB as ...
by krishnaiah.vv
Thu Sep 03, 2015 1:30 pm
Forum: Advanced users
Topic: Clarifications on BSC slave
Replies: 12
Views: 5812

Re: Clarifications on BSC slave

Hi Gert van Loo, Thank you for taking the query further. To clarify your assumptions, yes, all my queries (listed above) are related to SPI Slave which is defined as "BSC/SPI slave"( in P.160 of BCM2835_peripherals_manual). Btw, I would be eagerly waiting for your/James A. inputs concerning the real...
by krishnaiah.vv
Wed Sep 02, 2015 6:07 pm
Forum: Advanced users
Topic: Clarifications on BSC slave
Replies: 12
Views: 5812

Re: Clarifications on BSC slave

Hi Gert van Loo, Do you have any clues on these queries?

And concerning the phase and clk, i think it is expected that slave should specify master, with which phase and clock polarities master needs to communicate(as Master generates the clock).
by krishnaiah.vv
Wed Sep 02, 2015 4:22 pm
Forum: Advanced users
Topic: Clarifications on BSC slave
Replies: 12
Views: 5812

Re: Clarifications on BSC slave

Thank you jamesh, looking forward for further steps
by krishnaiah.vv
Wed Sep 02, 2015 3:24 pm
Forum: Advanced users
Topic: Clarifications on BSC slave
Replies: 12
Views: 5812

Clarifications on BSC slave

Hello, I am curious to know who could support me w.r.t the incompleteness / bugs in BCM2835 controller documentation. My main concern is about the BSC/SPI slave chapter. I wrote an email to Broadcom, whose response is "We don't support for BCM2835" !!!. I might be wrong with some questions but, happ...
by krishnaiah.vv
Wed Aug 26, 2015 11:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems in using RPi as SPI Slave
Replies: 2
Views: 1327

Re: Problems in using RPi as SPI Slave

It might be worth searching for code. I'm fairly sure one of the bare metal guys had some working code. It wouldn't be directly usable by you but it would show one method of correctly configuring the registers. Hi Joan, I found some spi slave examples using the bit banging SPI(unfortunately which i...
by krishnaiah.vv
Wed Aug 26, 2015 6:30 am
Forum: Bare metal, Assembly language
Topic: Bare metal programming - downloading programs
Replies: 12
Views: 3671

Re: Bare metal programming - downloading programs

I have set up a system, mainly using Dave Welch's code - modified. Currently I'm using it "pi2pi" where I use my mini-terminal program plus his downloader program to download, test and reboot WITHOUT pulling the SD card or powering on/off the bare metal pi. Some examples including gpio, spi with pi...
by krishnaiah.vv
Tue Aug 25, 2015 5:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems in using RPi as SPI Slave
Replies: 2
Views: 1327

Problems in using RPi as SPI Slave

Hello , I started developing SPI slave driver taking BCM2835(Mike McCauley) drivers as base(from userland) since, I didn't find any working examples for SPI slave in RPi 2 Model B(J8-40Pin) so far. I have implemented with few assumptions from the documentation. It would be great that someone clarifi...
by krishnaiah.vv
Tue Aug 18, 2015 11:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Interface and program with Raspberry Pi 2
Replies: 6
Views: 1944

Re: SPI Interface and program with Raspberry Pi 2

Hello, I have done some experiments with SPI master -> slave from raspberry -> atmel328. Generally it is not a problem, but timing is critical. It is crucial to read in data fast enough on controller side, and to send data out only as fast as the slave can process them. If you are a beginner in pro...
by krishnaiah.vv
Fri Aug 14, 2015 12:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to create an I2C slave interface
Replies: 6
Views: 1966

Re: How to create an I2C slave interface

The Pis with the 40 pin header and the compute module export one I2C/SPI slave peripheral on the expansion header. The I2C/SPI slave peripheral is not supported in the kernel. I know at least one poster was trying to use it from Linux userland. I haven't seen any evidence of success. There are bare...
by krishnaiah.vv
Thu Aug 13, 2015 2:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi 2 as SPI slave?
Replies: 6
Views: 1919

Re: RPi 2 as SPI slave?

Hello Joan, I see this info in P.160 and i am clear in configuring the registers. But what i wonder is the about the schematics(2835) https://www.raspberrypi.org/wp-content/uploads/2012/10/Raspberry-Pi-R2.0-Schematics-Issue2.2_027.pdf. Its mentioned that there is not pin out available for GPIO 18 an...
by krishnaiah.vv
Thu Aug 13, 2015 1:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi 2 as SPI slave?
Replies: 6
Views: 1919

Re: RPi 2 as SPI slave?

Hello Joan, I am using the RPi Model B Revision 2 with BCM2836 chip. I've put my efforts in finding the datasheet for BCM2836, but couldn't find it. What I would like to know in particular is whether GPIO19 to GPIO21 pins are now available on BCM2836 or not. I didn't find any differences regarding t...
by krishnaiah.vv
Tue Aug 04, 2015 12:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi B+ as I2C/BSC slave?
Replies: 10
Views: 5471

Re: RPi B+ as I2C/BSC slave?

Hi, I had some time and I wrote a simple kernel module to test the functionality but I am stick with it. The problem is that I don't really know how to initialize the SPI/BSC Slave. I try to realize a SPI Slave but for the I2C Slave the differences aren't certainly so big. I mostly try to activate ...
by krishnaiah.vv
Tue Aug 04, 2015 11:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi 2 as SPI slave?
Replies: 6
Views: 1919

Re: RPi 2 as SPI slave?

Hi Joan, Thanks for your reply. I've searched the forum.. but there wasn't clear conclusion or some example code available. I would be happy when you could redirect me to the related posts in the forum. Regd the need to configure as SPI slave, I just need to receive a block of data from Master Pi at...
by krishnaiah.vv
Tue Aug 04, 2015 9:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi 2 as SPI slave?
Replies: 6
Views: 1919

RPi 2 as SPI slave?

Hello folks, I am looking for some information if the "RPi 2" can be configured as SPI slave? The documentation(P.160) says that it can be configured and some forums discuss that its not possible to make SPI as slave in RPi. Can someone kindly clarify this point? Pls note that, I am using "RPi 2"(40...
by krishnaiah.vv
Tue Jul 28, 2015 3:31 pm
Forum: Advanced users
Topic: spidev vs bitbanging
Replies: 6
Views: 1638

Re: spidev vs bitbanging

... I do agree however that the conversation is limited on the "when" aspect of one vs the other. For instance, if your interfacing with more than one SPI device, you either have to 1) MUX it or 2) spidev one device AND bitbang the other. This is based on RPi not having slave SPI capability. (again...
by krishnaiah.vv
Mon Jul 06, 2015 4:04 pm
Forum: General programming discussion
Topic: SPI between two RPi's
Replies: 10
Views: 3802

Re: SPI between two RPi's

Hi Venk,

Did u already find a solution for SPI communication between two PIs?

BR, Krish
by krishnaiah.vv
Wed Jun 24, 2015 9:35 am
Forum: Python
Topic: Can't find Python.h trying to make wrapper (SOLVED)
Replies: 12
Views: 3652

Re: Can't find Python.h trying to make wrapper (SOLVED)

Hi,

I understand that "sudo apt-get update" needs internet connection for updating packages.
But, do u have an idea how we can install the python3-dev by downloading them on windows machine?

For some reasons, I am not allowed to connect to Internet. :( .

Thank you
Krish
by krishnaiah.vv
Wed Jun 24, 2015 9:15 am
Forum: Python
Topic: How to install python-dev offline
Replies: 0
Views: 608

How to install python-dev offline

Hello, I am new to Raspberry pi and also for the Linux and python environments. I want to use SPI interface from Pi. I tried installing SpiDev Python module, but failed with an error : python.h is not found. I understand that i need this file for compiling spidev_module.c. I read from sources that i...

Go to advanced search