infernalheaven / libmpsse

Automatically exported from code.google.com/p/libmpsse
0 stars 0 forks source link

I2C Read is not working for me #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the attached code changing the slave address to whatever slave address 
your I2C device uses and to whatever register you can read and write to
2. I included some code that uses the ftdi command that would clock in the 
data, which does work. Just comment that out and uncomment the part right after 
//Read 1 of the registers.

What is the expected output? What do you see instead?
The expected outcome is whatever you wrote to the address. I just get a seg 
fault. When trying to print the pointer to the data, I just get the size that I 
inputted to the Read command

What version of the product are you using? On what operating system?
Using libmpsse-1.3 on Fedora 19

Please provide any additional information below.

Original issue reported on code.google.com by gt...@cornell.edu on 27 Sep 2013 at 8:26

Attachments:

GoogleCodeExporter commented 9 years ago
Please close, there was a problem with swig that was returning sdata before 
getting to the buf

Original comment by gt...@cornell.edu on 30 Sep 2013 at 7:51

GoogleCodeExporter commented 9 years ago
Closed per user request.

Original comment by heffne...@gmail.com on 1 Oct 2013 at 7:11