Hi,
I've been trying to use the I2C interface with redpitaya. I installed a fresh OS (latest version as of now), upgraded the OS, downloaded i2ctools and when I run it it says Then i ran the following commands:
tar xvzf i2c-tools-3.1.2.tar.gz
cd i2c-tools-3.1.2
make
sudo make install
I got these warnings. http://image.prntscr.com/image/acd4fe3b ... 754c63.png
When I go to my /dev/ I don't see i2c-1 through i2c-6. http://image.prntscr.com/image/0ddc0181 ... ed699c.png
I don't know what's causing this. Not sure what I'm missing. I know for RPi I had to change some configurations in the device tree but I don't recall doing the same for red pitaya.
Here's the result of uname -a http://image.prntscr.com/image/2144d45b ... 9f74ac.png
Linux modules missing in redpitaya
-
- Posts: 7
- Joined: Thu Jan 07, 2016 10:39 am
Re: Linux modules missing in redpitaya
Hi!
RedPitaya provides only one i2c bus "/dev/i2c-0", If you want additional busses you can buy i2c mux chip, but that will have to be enabled by editing and recompiling device tree. Try examining https://github.com/RedPitaya/linux-xlnx ... 2c-mux.txt
It is also possible to use device tree overlay similar to the one used in hamlab https://github.com/RedPitaya/RedPitaya/ ... 2cmux.dtso.
Maybe you can try to test your i2c devices with command line tools: i2cdetect, i2cdump, i2cget, i2cset .
For C examples look at example code and then modify it according to your requirements:
https://github.com/RedPitaya/RedPitaya/ ... tion/C/iic
You can also look at some code that uses busses from i2c-mux chip.
https://github.com/RedPitaya/RedPitaya/ ... Test/hamrf
Cheers, Uroš
RedPitaya provides only one i2c bus "/dev/i2c-0", If you want additional busses you can buy i2c mux chip, but that will have to be enabled by editing and recompiling device tree. Try examining https://github.com/RedPitaya/linux-xlnx ... 2c-mux.txt
It is also possible to use device tree overlay similar to the one used in hamlab https://github.com/RedPitaya/RedPitaya/ ... 2cmux.dtso.
Maybe you can try to test your i2c devices with command line tools: i2cdetect, i2cdump, i2cget, i2cset .
For C examples look at example code and then modify it according to your requirements:
https://github.com/RedPitaya/RedPitaya/ ... tion/C/iic
You can also look at some code that uses busses from i2c-mux chip.
https://github.com/RedPitaya/RedPitaya/ ... Test/hamrf
Cheers, Uroš
-
- Posts: 5
- Joined: Tue Mar 28, 2017 12:11 am
Re: Linux modules missing in redpitaya
When I run I get this: .
Code: Select all
i2cdetect -y 0
Code: Select all
can't use smbus quick write command on this bus
-
- Posts: 7
- Joined: Thu Jan 07, 2016 10:39 am
Re: Linux modules missing in redpitaya
Try adding -r argument:
Cheers,
Uroš
Code: Select all
i2cdetect -y -r 0
Uroš
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 6 guests